File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes JTA in Weblogic 7.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "JTA in Weblogic 7.0" Watch "JTA in Weblogic 7.0" New topic

JTA in Weblogic 7.0

Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
In Weblogic admin console, under domain - configuration - jta, there are 2 parameters within others:
Timeout Seconds ( doc: " The transaction timeout in seconds " )
Abandon Timeout Seconds ( doc: " The transaction abandon timeout in seconds " )
Can anyone help me out understanding the difference between them ?
Thx in advance,

Giselle Dazzi<br />SCJP 1.4
Padam Krishna
Ranch Hand

Joined: Jul 24, 2003
Posts: 37
Timeout Seconds means "The time, in seconds, a transaction may be active before the system forces a rollback." i.e. the time web logic server allocates to each transaction for sucess or failure.
Abandon Timeout Seconds means (from bea edocs)"In the two-phase commit process for distributed transactions, the transaction manager coordinates all resource managers involved in a transaction. After all resource managers vote to commit or rollback, the transaction manager notifies the resource managers to act—to either commit or rollback changes. During this second phase of the two-phase commit process, the transaction manager will continue to try to complete the transaction until all resource managers indicate that the transaction is completed. Using the AbandonTimeoutSeconds attribute, you can set the maximum time, in seconds, that a transaction manager will persist in attempting to complete a transaction during the second phase of the commit protocol. The default value is 86400 seconds, or 24 hours. After the abandon transaction timer expires, no further attempt
is made to resolve the transaction with any resources that are unavailable or unable to acknowledge the transaction outcome. If the transaction is in a prepared state before being abandoned, the transaction manager will roll back the transaction to release any locks held on behalf of the abandoned transaction and will write an heuristic error to the server log.
Giselle Dazzi
Ranch Hand

Joined: Apr 20, 2003
Posts: 168
Hi, thanks, I had read that too. I hope Im not being too dumb, but I still dont exactly see the difference between the 2 ...
I agree. Here's the link:
subject: JTA in Weblogic 7.0
It's not a secret anymore!