[jboss-jira] [JBoss JIRA] (WFLY-977) Servlet AsyncListener PreDestroy method not called
Tomaz Cerar (JIRA)
issues at jboss.org
Mon Feb 10 09:33:29 EST 2014
[ https://issues.jboss.org/browse/WFLY-977?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12943037#comment-12943037 ]
Tomaz Cerar commented on WFLY-977:
----------------------------------
Cheng can you verify that this issue still exists in WildFly 8?
> Servlet AsyncListener PreDestroy method not called
> ---------------------------------------------------
>
> Key: WFLY-977
> URL: https://issues.jboss.org/browse/WFLY-977
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Web (JBoss Web)
> Reporter: Cheng Fang
> Assignee: Remy Maucherat
> Attachments: asynccontext.zip
>
>
> 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