• 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 ...
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Junilu Lacar
  • Liutauras Vilda
  • Paul Clapham
  • Jeanne Boyarsky
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Jesse Duncan
  • Frits Walraven
  • Mikalai Zaikin

Problem with transaction.timeout

Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using a session EJB with container-managed transaction in J2EE RI and MS SQL environment.
I have a method in it with "Trans-attribute=required" transaction setting:
try {
prepStmt = con.prepareStatement(updateStatement);
} catch(Exception ex) {
If the above update meets with database lock then the transaction will not time out in spite the fact that
the transaction.timeout property in the default.properties file was set to 5.
When the database lock stops I get the following error message on the server side:
javax.ejb.EJBException: Transaction aborted (possibly due to transaction time out)
What do I have to do ?
Thanks for any help
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic