• 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
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic