3 Replies Latest reply on Jun 20, 2011 7:20 AM by Anders Welen

    how to set Transaction attribute notsupported to MBean

    Mayank Mittal Novice

      I've created  a MBean. Now what I want is how to specify the transaction attribute 'notsupported' in deployment descriptor.

       

      I triesd following code but is not working

      <server>
      <mbean code="test.TestBean"
            name="test:service=TestBean">
            <depends>
               <mbean code="org.jboss.invocation.jrmp.server.JRMPProxyFactory"
                  name="jboss:service=proxyFactory,target=TestBean">
                  <attribute name="InvokerName">jboss:service=invoker,type=unified</attribute>
                  <attribute name="TargetName">test:service=TestBean</attribute>
                  <attribute name="JndiName">ITestBean</attribute>
                  <attribute name="ExportedInterface">test.ITestBean</attribute>
                  <attribute name="ClientInterceptors">
                     <interceptors>
                        <interceptor>org.jboss.proxy.ClientMethodInterceptor</interceptor>
                        <interceptor>org.jboss.invocation.InvokerInterceptor</interceptor>
                     </interceptors>
                  </attribute>
                  <depends>jboss:service=invoker,type=unified</depends>
               </mbean>
            </depends>     
            <transaction-type>Container</transaction-type>
            <container-transaction>
              <method>
                  <ejb-name>TestBean</ejb-name>
                  <method-name>*</method-name>
              </method>
              <trans-attribute>NotSupported </trans-attribute>
            </container-transaction>
         </mbean>
         </server>
      

       

      The same is possible in EJB3 is with using @TransactionAttribute, but the problem is EJB3 is that I no where find any sample.

      What I found is https://issues.jboss.org/browse/EJBTHREE-743.

       

      now how to proceede..

       

      JBoss AS 4.2.3 GA