bnmbn ghjhg
2005-02-02 10:26:44 UTC
Hi,
We run the following code from a stateless sessionbean. The code calls a stored procedure containing a never returning loop, the transaction never times out.
uts = ctx.getUserTransaction();
uts.begin();
// call to some function that calls a stored procedure, never returns
uts.commit();
We tried with
uts.setTransactionTimeout(...);
but it doesn't help.
tried
UserTransaction tx = (UserTransaction) ictx.lookup("javax.transaction.UserTransaction");
tx.setTransactionTimeout(10);
tx.begin();
but it didn't help either.
Are there any settings we are supposed to change when working manually with user transactions. Weblogic transactions seem to work fine.
Thanks,
A.
We run the following code from a stateless sessionbean. The code calls a stored procedure containing a never returning loop, the transaction never times out.
uts = ctx.getUserTransaction();
uts.begin();
// call to some function that calls a stored procedure, never returns
uts.commit();
We tried with
uts.setTransactionTimeout(...);
but it doesn't help.
tried
UserTransaction tx = (UserTransaction) ictx.lookup("javax.transaction.UserTransaction");
tx.setTransactionTimeout(10);
tx.begin();
but it didn't help either.
Are there any settings we are supposed to change when working manually with user transactions. Weblogic transactions seem to work fine.
Thanks,
A.