I have a servlet based (currently) application that I am deploying with jboss.
 
I've set up an xadatasource happily, and that seems to be registering properly. I'm using the managed XA transaction manager
 
org.jboss.resource.connectionmanager.XATxConnectionManager
 
 
When I do a JDO query with explicitly reading a usertransaction object
 
ie.
 
            ctx = new InitialContext();
            ut = (UserTransaction) ctx.lookup( "UserTransaction" );
            Database db = jdo.getDatabase();
            ut.begin();
         .....
 
and wrapper the transaction up with ut.begin and ut.commit I get a nested transaction error (from steeping through the get database code it looks like get database also looks up and starts a transaction... Hence I get a nested transaction error.
 
If I don't do any manual transaction handling , only set the transaction manager name in the JDO I get
 
17:54:46,148 ERROR [Goals] Persistence exception : No transaction in progress for the current thread
 
Any ideas ????
 
Thanks in advance , Colin
 
 
---------------------------
Colin Canfield                           [EMAIL PROTECTED]
Web Consultant                       0412 197 943
Explorative Software Pty Ltd
www.exsoft.com.au

Reply via email to