users@glassfish.java.net

Re: Deploying an EAR with MDB that uses an ActiveMQ Connector Resource

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Apr 2008 21:30:07 PDT

Hi,
If you want to use Active MQ RA for your MDB inbound connection then you have to specify it in sun-ejb-jar.xml in the following way.
Under the mdb-resource-adapter element you have to specify the active mq ra name in the resource-adapter-mid element.
If you dont have this element then the MDB will use Open MQ resource adapter by default.

<mdb-resource-adapter>
     <resource-adapter-mid>activemeraname</resource-adapter-mid>

Note: Please replace activemqraname with the actual name of the active mq resource adapter. I have put it just as a placeholder

Also there is no annotated way of specifying a resource adapter name in an MDB, you have to do it in the sun-ejb-jar.xml.

If you have done this and you still see a problem, please attach the entire log.

Thanks
-Ramesh
[Message sent by forum member 'rampsarathy' (rampsarathy)]

http://forums.java.net/jive/thread.jspa?messageID=270875