[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:43:01 EDT 2012


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

Cheng Fang updated AS7-5840:
----------------------------

    Attachment: asynccontext.zip


attached a maven test app, deploy it, run
url /asynccontext/ , and undeploy.

check server.log for the logs indicating calling postConstruct, but none for preDestroy.

                
> 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
>         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