The destroy() method in a handler is not called when the application is stopped.
 Technote (FAQ)
 
Problem
If stopping an web service enabled application from the Administration Console, and if the web service has handlers, the destroy() methods of the handlers are not called.
 
Cause
This is by design. The JAX-RPC specification does not clearly define when the destroy() method should be called. The JAX-RPC specification says the following:

"The JAX-RPC runtime system is required to invoke the destroy method when the runtime system determines that the Handler object is no longer needed." WebSphere Application Server does not call the destroy() method when the application is stopped. However, the destroy() method WILL be called when the application server stops.

 
Solution
Do not rely on a handler's destroy() method when stopping an application from within the Administration Console.
 
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Web Services (for example: SOAP or UDDI or WSGW or WSIF)
Operating system(s): Windows
Software version: 5.1
Software edition:
Reference #: 1220336
IBM Group: Software Group
Modified date: Oct 20, 2005