users@glassfish.java.net

Re: using genericjms ra for j2ee 1.5

From: <glassfish_at_javadesktop.org>
Date: Wed, 20 Feb 2008 19:43:19 PST

Hi Sanjay,
Genereric jms ra is a JCA 1.5 compliant resource adapter. The ra itself does not rely on whether the configuraton information is supplied through annotations or deplyment descriptor.
But generic ra cannot be used with an MDB which is only annotated and does not have a deployment descriptor, this is because
 There is no annotation to specify that you want to use the generic jms resource adapter instead of the default jms resource adapter present in glassfish, So now in your case the MDB uses the default resource adapter (if you use only annotations) and would connect to the Open MQ that is bundled and started with glassfish and not Web Sphere MQ.
So you would need this element
  <resource-adapter-mid>genericra</resource-adapter-mid>
in the sun-ejb-jar.xml if you want to use generic ra for your MDB
Thanks
-Ramesh
[Message sent by forum member 'rampsarathy' (rampsarathy)]

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