Hi all,

I have the following code in a server side testcase (cactus):

  | this.userTransaction = (UserTransaction) 
getInitialContext().lookup("java:comp/UserTransaction");
  | System.out.println("Returned user transaction has status " + 
this.userTransaction.getStatus());
  | 

Most of the time this goes fine and I can see status 6 (STATUS_NO_TRANSACTION). Other 
times however, the status is 1 (STATUS_MARKED_ROLLBACK) as if I am reusing a 
UserTransaction from a previous test case that was marked for rollback.
I am quite sure that the previous test case has rolled back the transaction (does that 
in tearDown).

The problem is that I get an exception when I try to start the transaction.

Can anybody help me out here?

Many thanks,

Rudi.

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

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


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to