Hi,
I need to do some clean up (release open ports,etc.) before my EJB Session Bean is being undeployed, is there a way to detect this?
The EJB is running on Weblogic 10.0.
Hi,
I need to do some clean up (release open ports,etc.) before my EJB Session Bean is being undeployed, is there a way to detect this?
The EJB is running on Weblogic 10.0.
Can you not make use of the session bean lifecycle by using @PreDestroy
as illustrated here ?
Listen to the lifcecycle events using the ServletContextListener interface.
Implement the interface in a class, and register it in web.xml:
<listener>
<listener-class>
my-class-with-servlet-contextlistener-interface
</listener-class>
</listener>