[jboss-jira] [JBoss JIRA] (WFLY-977) Servlet AsyncListener PreDestroy method not called

Brian Stansberry (JIRA) issues at jboss.org
Fri Feb 7 22:58:29 EST 2014


     [ https://issues.jboss.org/browse/WFLY-977?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brian Stansberry updated WFLY-977:
----------------------------------

    Component/s: Web (JBoss Web)

    
> 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