• 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?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic