This content has been marked as final.
Show 2 replies
-
1. Re: JBoss AS 5.10: @ResourceAdapter annotation not working
jaikiran Nov 12, 2009 6:09 AM (in response to s0d0)If I specify @ResourceAdapter("sonic-jms-ra.rar") annotation to MDB,
JBoss still tries to use DefaultJMSProvider and ra is null (ra=null)
You probably aren't using the correct import statement. In JBoss AS-5 the JBoss EJB3 specific annotations have moved to org.jboss.ejb3.annotation.*
So you should have:import org.jboss.ejb3.annotation.ResourceAdapter; ... @ResourceAdapter(value = "sonic-jms-ra.rar") ... public class MessageListenerBean implements MessageListener {
We have tests and tutorials where we use @ResourceAdapter to override the default, and those are passing :)
-
2. Re: JBoss AS 5.10: @ResourceAdapter annotation not working
s0d0 Nov 12, 2009 7:41 AM (in response to s0d0)Thanks for quick response. It works now :)