0 Replies Latest reply on Jun 11, 2005 3:15 PM by wkwan0423

    Problems with trans-attribute

    wkwan0423

      I am having problems with JBoss discovering individual trans-attribute values when using the assembly descriptor shown below. The behavior we experience is that the course grained method descriptor is honored (Required using * ), and the fine grained element (RequiresNew with method name) ignored.

      Q: should the individual method elements for each bean be defined in seperate container-transaction elements?

      Q: Is the order the elements are listed significant?

      Q: Is there a JMX interface showing the attributes the beans receive at deployment?


      Thanks for any help with this issue.

      CW

      <ejb-jar>
      
      <!-- Bean Descriptors elided ... -->
      
      <assembly-descriptor>
      
      <!-- Method Permissions elided ... -->
       <container-transaction>
       <method>
       <ejb-name>BeanA</ejb-name>
       <method-name>ejbTimeout</method-name>
       </method>
       <method>
       <ejb-name>BeanB</ejb-name>
       <method-name>getId</method-name>
       </method>
       <trans-attribute>RequiresNew</trans-attribute>
       </container-transaction>
      
       <container-transaction>
       <method>
       <ejb-name>BeanA</ejb-name>
       <method-name>*</method-name>
       </method>
       <method>
       <ejb-name>BeanB</ejb-name>
       <method-name>*</method-name>
       </method>
       <trans-attribute>Required</trans-attribute>
       </container-transaction>
       </assembly-descriptor>
      </ejb-jar>