-
Bug
-
Resolution: Done
-
Major
-
None
-
None
The PostConstruct method of an AsyncListener is called, but the PreDestroy method is not called.
For example, the listener is created and registered as follows:
AsyncContext ac = request.startAsync(); ac.addListener(ac.createListener(MyAsyncListener.class));
AsyncListener is considered a web event listener and Java EE component, and its PreDestroy method should be called when the current request terminates.