Reputation: 20663
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?
Upvotes: 2
Views: 3034
Reputation: 41
In WLS 10.2, you can use the WLS custom extension weblogic.transaction.Transaction
and then call getTimeToLiveMillis()
.
Upvotes: 2
Reputation: 20663
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.
Upvotes: 0
Reputation: 2895
If you just want the default, you can use weblogic.management.configuration.JTAMBean.
Upvotes: 2