[jboss-jira] [JBoss JIRA] (AS7-3202) The @ResourceAdapter annotation on MessageBeans does not work

Peter Rönnqvist (JIRA) jira-events at lists.jboss.org
Thu Jan 12 09:56:21 EST 2012


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

Peter Rönnqvist commented on AS7-3202:
--------------------------------------

First of all:
The first case I previoulsly attached is wrong, as is the case attached to AS7-2505 using deployment descriptors.
It is simply missing to implement MessageDrivenBean. Thereof the class cast exception.

I got the sample working by:
@MessageDriven
public class TestMDB implements TestMessageListener

The jboss-ejb3.xml needed: 
<mdb:resource-adapter-name>Test.ear#Connector-0.0.2</mdb:resource-adapter-name>

I still didn't get @ResourceAdapter to work, even with "Test.ear#Connector-0.0.2".
All in all I'm happy anyway since I will not have to introduce JBoss speciffic annotations into the code.

                
> The @ResourceAdapter annotation on MessageBeans does not work 
> --------------------------------------------------------------
>
>                 Key: AS7-3202
>                 URL: https://issues.jboss.org/browse/AS7-3202
>             Project: Application Server 7
>          Issue Type: Bug
>          Components: EJB
>    Affects Versions: 7.1.0.CR1b
>            Reporter: Peter Rönnqvist
>            Assignee: jaikiran pai
>         Attachments: cases.zip
>
>
> See AS7-2505 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the jboss-jira mailing list