views:

713

answers:

3

Is there a way to get JTA transaction timeout value? UserTransaction interface has only setTransactionTimeout method. Is there a specific way of getting its value in WebLogic?

+1  A: 

If you just want the default, you can use weblogic.management.configuration.JTAMBean.

Wayne Young
Thanks, but no, I actually want the timeout of the current transaction as it may differ from default.
Superfilin
A: 

There is no actual solution to determine current transaction timeout value with simple API call.

As a solution I've used the advice from Wayne above to get the default value. Also as all non-default values I set myself based on configuration file, I read/cache it again when there is a need to get the value for current transaction timeout.

Superfilin
A: 

In WLS 10.2, you can use the WLS custom extension weblogic.transaction.Transaction and then call getTimeToLiveMillis().

John Liptak