Atomikos Forum |
|
Hi... a few questions:
I know there is a property in the Atomikos config to set the MAX tx timeout, but I'm wondering... is there a way to set a default timeout? I see that the timeout is settable with the setTransactionTimeout method of the transaction manager class and friends, but it would be helpful to be able to set a default in a properties file and not have to explicitly invoke a method to set it. It appears the default is 10 seconds. Is there a reason for this particular default? Just a number out of thin air? Lastly, I can probably find the info for myself, but I'm also wondering... when using setTransactionTimeout method, does this timeout value propagate across transactions, or does this set the timeout for the lifetime of the transaction manager? Thanks! - Phillip
Hah, sorry, I think I saw the word "propagate" in some other posts as I was looking for info and it stuck in my mind. I meant to use the word "persist"
If the transaction management service is fired up and the setTransactionTimeout method is immediately invoked to set a transaction timeout... does that setting remain in effect for all transactions for the rest of the lifetime of the transaction service. Or does each thread that starts a new transaction need to explicitly set the timeout if the default 10 seconds is not what is desired? Thanks again! - Phillip |