[jboss-user] [JCA/JBoss] - Re: EJB3 - XA datasource - Transactions - XAER_OUTSIDE

apill do-not-reply at jboss.com
Thu Jan 25 11:51:28 EST 2007


The code that is causing the error should only be using the datasource named PicsDS (this is the db2 database on linux). It is other EJBs that use the other datasources.

The sequence of events are...

1. client calls stateless session bean A method getBusinessUnitSubSystemWithInventory()

2. getBusinessUnitSubSystemWithInventory() calls through to another stateless session bean B method getUTInventoryNavigatorDAO(). Stateless session bean B was injected into A by the container.

3. B creates a new DAO with the Session that was injected by the container into B. This DAO returned to A.

4. Stateless session bean A calls getBusinessUnitSubSystemWithInventory() on the DAO which executes a named hibernate query with the Session.

5. The result of this query should be returned to the client.

It is at the point the query is executed that the exception is thrown.

The relevant code for all of this is available in the previous thread,
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=99740


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

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



More information about the jboss-user mailing list