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
2009-09-07 13:22:24
Thanks, but no, I actually want the timeout of the current transaction as it may differ from default.
Superfilin
2009-09-07 13:25:23
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
2009-09-08 10:38:27
A:
In WLS 10.2, you can use the WLS custom extension weblogic.transaction.Transaction
and then call getTimeToLiveMillis()
.
John Liptak
2010-07-30 00:46:38