Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-298

Transaction timeout at method level for EJB3 session bean

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: EJB 3.0 RC4 - PFD
    • Component/s: None
    • Labels:
      None
    • Environment:

      All

      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>

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bdecoste William DeCoste
                Reporter:
                granby Gustav RĂ„nby
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: