Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个 WLST 脚本:第一个创建一个新的邮件会话,执行如下操作:
fooMailSession = cmo.createMailSession('FooMailSession') fooMailSession.setJNDIName('mail/FooMailSession') (...)
在另一个脚本中,我想删除/删除之前创建的邮件会话 - 但是我怎样才能安全地访问该对象以及删除它的方法是什么?
感谢您的回答。
您可以使用lookupMailSession(String name)
mailSession = cmo.lookupMailSession('FooMailSession') cmo.destroyMailSession(mailSession)