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

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

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: EJB 3.1
    • Component/s: transactions
    • Labels:
      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>

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  wolfc Carlo de Wolf
                  Reporter:
                  wolfc Carlo de Wolf
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated: