Question

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?

Was it helpful?

Solution

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

OTHER TIPS

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

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top