Bugzilla – Bug 1427
preDestroy can only be called once if container is not restart
Last modified: 2004-05-28 15:48:14
You need to log in before you can comment on or make changes to this bug.
in the method "preDestroy", if we throw a exception, then this method will only be called at the first time if the client call xxx.destroy(). If we do not restart the container, then the later client call xxx.destroy(), the service side "preDestroy" will not be invoked. In the above description, "xxx" means any service.
I modified the code so that the service is considered destroyed only if preDestroy was called successfully on all operation providers and the destroy listener was also invoked successfully. The fix was committed to trunk.