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

Ovi do-not-reply at jboss.com
Tue Oct 20 09:32:39 EDT 2009

I had the same problem which on my side was caused by accessing 2 different data-sources within the same transaction (XA transaction on Oracle database).

E.g. Method X is calling method Y which does an database A insert and calls method Z which does a database B update.

The solution was to annotate method Y and method Z with: @TransactionAttribute(TransactionAttributeType.REQUIRES_NEW)

Hope this helps. 

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

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

More information about the jboss-user mailing list