[jboss-user] [JBoss Messaging] - Re: Weird transaction error

TheOverlord do-not-reply at jboss.com
Sat Aug 16 02:28:53 EDT 2008


I can confirm that adding <track-connection-by-tx/> to my JMS datasource file fixed the problem.

It should look like this:


  | <tx-connection-factory>
  |     <jndi-name>JmsXA</jndi-name>
  |     <xa-transaction/>
  |     <rar-name>jms-ra.rar</rar-name>
  | 
  |     <!-- ADD THIS. DONT FORGET IT !!!!!!!!!!!!! -->
  |     <track-connection-by-tx/>
  |     <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>
  | 

Arghhhhh, I can't believe that this was the cause of all my pain.

How was I supooed to know that some obscure setting was causing all this commit/rollback and IllegalMonitorState exceptions !!

It should be there by default.

OMFG, I lost so much sleep over this.


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

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



More information about the jboss-user mailing list