[jboss-jira] [JBoss JIRA] (WFLY-6697) @PreDestroy beans not called when performing disable in domain mode

Robert Smith (JIRA) issues at jboss.org
Thu Jun 9 17:08:00 EDT 2016


    [ https://issues.jboss.org/browse/WFLY-6697?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13250585#comment-13250585 ] 

Robert Smith commented on WFLY-6697:
------------------------------------

In standalone mode, if I undeploy or disable my war deployment, @ApplicationScoped jsf beans @PreDestroy is invoked.
In domain mode, there is no undeploy option. Disabling does not cause my @PreDestroy to be invoked.

The net result, I have a thread in my @ApplicationScoped bean that is scheduled and continues to execute after the application is disabled.

> @PreDestroy beans not called when performing disable in domain mode
> -------------------------------------------------------------------
>
>                 Key: WFLY-6697
>                 URL: https://issues.jboss.org/browse/WFLY-6697
>             Project: WildFly
>          Issue Type: Bug
>          Components: Domain Management
>    Affects Versions: 9.0.2.Final
>            Reporter: Robert Smith
>            Assignee: Brian Stansberry
>




--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list