[jboss-jira] [JBoss JIRA] (AS7-5840) Servlet AsyncListener PreDestroy method not called
Cheng Fang (JIRA)
jira-events at lists.jboss.org
Thu Oct 25 22:39:01 EDT 2012
Cheng Fang created AS7-5840:
-------------------------------
Summary: Servlet AsyncListener PreDestroy method not called
Key: AS7-5840
URL: https://issues.jboss.org/browse/AS7-5840
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.2.0.Alpha1
Reporter: Cheng Fang
Assignee: Remy Maucherat
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:
{code:java}
AsyncContext ac = request.startAsync();
ac.addListener(ac.createListener(MyAsyncListener.class));
{code}
AsyncListener is considered a web event listener and Java EE component, and its PreDestroy method should be called when the current request terminates.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list