Details
-
Feature Request
-
Resolution: Done
-
Minor
-
None
-
None
-
None
Description
I am looking for a way to set transaction timeout at method level for an EJB3 session bean. The general timeout would be ok in allmost all cases but in a few cases I need a longer timeout and I would like to specify that in the facade of the application that is implemented by a statless session bean.
Easiest for me would be an annotation that you can use for methods in a statless session bean but if I could set these timeouts in jboss.xml for exampel that would work just as well. Exampel:
meta-inf/jboss.xml:
<enterprise-beans>
<ejb-name>MyStatelessSessionBean</ejb-name>
<method-attributes>
<method-name>methodWithoverriddenTransactionTimeout</method-name>
<transaction-timeout>600</transaction-timeout>
</method-attributes>
</enterprise-beans>