Atomikos Forum

Setting a default tx timeout?

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
Phillip Ross Send private email
Wednesday, September 03, 2008
 
 
Hi,

There is no default tx timeout yet. Interesting suggestion, we will note it for future releases.

Re your second question (propagation): not sure about what you mean. Care to clarify?

Thanks
Guy Pardon Send private email
Wednesday, September 03, 2008
 
 
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
Phillip Ross Send private email
Wednesday, September 03, 2008
 
 
I see what you mean.

The timeout lasts once set (but not across restarts).
Guy Pardon Send private email
Wednesday, September 03, 2008
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics