0 Replies Latest reply on Sep 14, 2002 1:44 AM by genman

    MDB with Container-Managed Transactions Not In JBoss 3.0?

    genman


      Has anyone here gotten JBoss 3.0 to work with container-managed transactions for message-driven beans?

      It seems to me, JBoss is totally ignoring the assembly descriptor. For example, specifying "trans-attribute" as "NotHere", I get no error:

      <assembly-descriptor>
      <container-transaction>

      <ejb-name>SmxBean</ejb-name>
      <method-name>*</method-name>

      <trans-attribute>NotHere</trans-attribute>
      </container-transaction>

      I get a "debug" message saying that my message-driven bean has no home interface or remote interface. Looking at the code for, I notice that in:

      http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src/main/org/jboss/ejb/plugins/local/Attic/BaseLocalContainerInvoker.java?rev=1.23&content-type=text/vnd.viewcvs-markup

      ...
      if( localHomeClass == null || localClass == null )
      {
      log.debug(metaData.getEjbName() + " cannot be Bound, doesn't have local and local home interfaces");
      return;
      }
      ...

      Am I doing something wrong, or does this not work in JBoss 3.0?

      Thanks -- my company helps support JBoss.