Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Transaction Timeout

 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For CMT (Container Managed Transaction), the timeout can be set in the config/default.properties file as :
transaction.timeout = 5 // 5 seconds
If it is set as :
transaction.timeout = 0 // the transaction will not timeout
For BMT (Bean Managed Transaction), the bean developer needs to use the setTransactionTimeout() method of the UserTransaction Interface. Setting in the default.properties has no effect on BMT.
Do Entity Beans have the timeout concept though as per EJB 1.1 they can only be CMT and not BMT?
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!