1 Reply Latest reply on Mar 21, 2011 4:16 AM by jaikiran pai

    unable to determine messagingType interface for MDB

    Anish Nath Newbie

      Hi i'm using Jboss As6, and EJB3 MDB,

       

      My Message DrivenBean looks like

       

      public final class OverrideMDB extends DefaultMDB

          implements MessageListener, HasBeenInstrumented

      {

         public void onMessage(Message message)

          {

       

      }

      //

       

      }

       

      abstract class DefaultMDB

          implements HasBeenInstrumented

      {

      protected final void onMessageReceive(Message message)

          {

      //BUSINESS METHOD

      }

       

      }

       

      Getting the error like this and deployment getting failed

      Caused by: org.jboss.deployers.spi.DeploymentException: Error creating ejb container OverrideMDB: Unable to choose messagingType interface for MDB OverrideMDB from [interface net.sourceforge.cobertura.coveragedata.HasBeenInstrumented, interface javax.jms.MessageListener]

          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:773) [:1.7.17]

          at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:710) [:1.7.17]

          at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:692) [:1.7.17]

          at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:655) [:1.7.17]

          at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:544) [:1.7.17]

          at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:177) [:6.0.0.Final]

          ... 49 more

       

       

      ANish