How to set EJB timeout period ?

JBoss recipe of the day

Use Container managed transactions.

Open jboss-service.xml ( in the conf directory)

   <mbean code="com.arjuna.ats.jbossatx.jta.TransactionManagerService"
      <attribute name="TransactionTimeout">300</attribute>
      <attribute name="ObjectStoreDir">${}/tx-object-store</attribute> 

Modify the TransactionTimeout attribute as you need.

Note: The timeout attribute is in seconds not in milliseconds !

Related articles available on

EJB 3.0 tutorial : Session Beans

Enterprise JavaBeans (EJB) technology is a J2EE technology for de

JBoss MDB 3.0

Message-driven beans (MDBs) are stateless, server-side, transacti


In a Bean Managed Transaction, the code in the session or message

How do you keep your EJB callbacks separated from biz. methods?

JBoss daily recipe

How to add a Selector with MDB 3.0 ?

Message selectors allow an MDB to be more selective about the mes

How to create a MDB 3.0 singleton ?

  EJB3 uses the resource adapter.  When using the resource adapt

Follow us on Twitter