Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is setTransactionTimeout reliable?  RSS feed

 
Sanujit Senapati
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to use the setTransactionTimeout() method in a BMT Stateless Session Bean on WebSphere 5. Is it reliable? in the sense that after a timeout, does the SystemException (or RollbackException) leave the server in a safe state.

Thanks,
Sanujit
 
tommy k. lee
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The transaction timeout values are generally enforced by the container. When the timeout value is exceeded, an XA-type exception is generally thrown by the container.

I generally like to set a large timeout value (5 minutes or more). Sometimes, latencies in the database, network, O/S will cause some transactions to take longer than normal. So to accomodate for these "normal deviations", I don't want to transaction to timeout prematurely.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!