I don't see anything in the ejb 2.1 spec that indicates how to interpret transaction attributes such as these:

<container-transaction>
  <method>
    <ejb-name>MyEJB</ejb-name>
    <method-intf>Local<method-intf>
    <method-name>*</method-name>
  </method>
  <trans-attribute>Required</trans-attribute>
</container-transaction>

<container-transaction>
  <method>
    <ejb-name>MyEJB</ejb-name>
    <method-intf>Remote<method-intf>
    <method-name>*</method-name>
  </method>
  <trans-attribute>Supported</trans-attribute>
</container-transaction>

<container-transaction>
  <method>
    <ejb-name>MyEJB</ejb-name>
   <!-- doSomething is in both local and remote interfaces -->
    <method-name>doSomething</method-name>
  </method>
  <trans-attribute>RequiresNew</trans-attribute>
</container-transaction>

I assume that the third overrides the other two, but I don't see that specified anywhere. Any help?

thanks
david jencks



Reply via email to