• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Is setTransactionTimeout reliable?

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
No thanks. We have all the government we need. This tiny ad would like you to leave now:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic