0 Replies Latest reply on Sep 1, 2005 5:32 AM by J-C jc

    TransactionTimeout (perviously in ejb2 in jboss.xml)

    J-C jc Apprentice

      It is possible to configure the TransactionTimeout for the application server in :

      <mbean code="org.jboss.tm.TransactionManagerService" ...>
       <attribute name="TransactionTimeout">300</attribute>
      

      Previously with jboss3.2.x, it was also possible to specify the timeout for a session bean in jboss.xml
      <jboss>
       <enterprise-beans>
       <session>
       <ejb-name>...</ejb-name>
      ...
       <method-attributes>
       <method>
       <method-name>testOverriddenTimeoutExpires</method-name>
       <transaction-timeout>5</transaction-timeout>
       </method>
       <method>
       <method-name>testOverriddenTimeoutDoesNotExpire</method-name>
       <transaction-timeout>20</transaction-timeout>
       </method>
       </method-attributes>
       </session>
       </enterprise-beans>
      </jboss>
      


      Do it exist annotation to specifiy the timeout on a session bean per method ?