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

Tx logic doesn't take method-intf type into acount

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Major
    • EJB 3.1
    • None
    • transactions
    • None

    Description

      Current metadata resolving logic uses AOP advisor.resolveAnnotation on a method. Since the method can be used both in a remote and local interface (via inheritance) we can't differentiate properly and an override listed below fails:

      <container-transaction>
      <description>Never for method sameMethod on remote intf</description>
      <method>
      <ejb-name>TxBean</ejb-name>
      <method-intf>Remote</method-intf>
      <method-name>sameMethod</method-name>
      </method>
      <trans-attribute>Never</trans-attribute>
      </container-transaction>
      <container-transaction>
      <description>Mandatory for method sameMethod on local intf</description>
      <method>
      <ejb-name>TxBean</ejb-name>
      <method-intf>Local</method-intf>
      <method-name>sameMethod</method-name>
      </method>
      <trans-attribute>Mandatory</trans-attribute>
      </container-transaction>

      Attachments

        Issue Links

          Activity

            People

              rhn-engineering-cdewolf Carlo de Wolf
              rhn-engineering-cdewolf Carlo de Wolf
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: