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

    • Feature Request
    • Resolution: Done
    • Minor
    • EJB 3.0 RC4 - PFD
    • 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>

      Attachments

        Activity

          People

            wdecoste1@redhat.com William Decoste (Inactive)
            granby_jira Gustav RĂ„nby (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: