[jboss-user] [JBoss Messaging] - Re: Best practice for managing connections in JMS Publishers

clebert.suconic@jboss.com do-not-reply at jboss.com
Wed Jun 18 10:49:18 EDT 2008


You just have to use java:/JmsXA in your JNDI (I'm not sure about the JNDI URL in top of my head now, please google for the right one :-) )

The JCA is defined by the JCA adapter, usually on jms-ds.xml (unless you changed it in your config).

Look for this:

 <tx-connection-factory>
  |     <jndi-name>JmsXA</jndi-name>
  |     <xa-transaction/>
  |     <rar-name>jms-ra.rar</rar-name>
  |     <connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
  |     <config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
  |     <config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/DefaultJMSProvider</config-property>
  |     <max-pool-size>20</max-pool-size>
  |     <security-domain-and-application>JmsXARealm</security-domain-and-application>
  |   </tx-connection-factory>
  | 



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4159016#4159016

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4159016



More information about the jboss-user mailing list