[jboss-jira] [JBoss JIRA] (WFLY-2732) Injected EJB not available to MDB @PreDestroy methods

Mustafa Musaji (JIRA) issues at jboss.org
Thu Jan 9 10:37:33 EST 2014


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

Mustafa Musaji updated WFLY-2732:
---------------------------------

    Attachment: MDBLifeCycleJAR.zip


Attached reproducer with client. You will need to add 

{code}
                    <jms-queue name="TestQueue">
                        <entry name="java:jboss/exported/jms/TestQueue"/>
                        <entry name="jms/TestQueue"/>
                        <durable>true</durable>
                    </jms-queue>
{code}

to your standalone-full.xml and a application user "guest" using the password in the client code.
                
> Injected EJB not available to MDB @PreDestroy methods
> -----------------------------------------------------
>
>                 Key: WFLY-2732
>                 URL: https://issues.jboss.org/browse/WFLY-2732
>             Project: WildFly
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: EJB
>    Affects Versions: 8.0.0.CR1
>            Reporter: Mustafa Musaji
>            Assignee: Stuart Douglas
>         Attachments: MDBLifeCycleJAR.zip
>
>
> MDB with method annotated with @PreDestroy and injected EJB. In this method we are calling an EJB. When the application is undeployed the PreDestroy method is called but it fails on the call to the injected EJB as it's already been undeployed.
> This was fixed in an RFE for Session Beans but does not seem to work for MDB.

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