1 Reply Latest reply on Oct 19, 2007 5:00 PM by Vinicius Carvalho

    MDB MessageType problems

    Vinicius Carvalho Apprentice

      Hello there! I'm running JBoss 4.2.1 and I have this class inheritance:

      public abstract class AbstractMDB implements MessageListener{
       @EJB
       private bizRef;
      
       public abstract void operateMessage(Element message);
      
       public void onMessage(Message message){
       bizRef.someMethod();
       //create the element
       operateMessage(element);
       }
      
      }
      @MessageDriven( activationConfig={
       @ActivationConfigProperty(propertyName="destinationType",propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination", propertyValue="queue/QueueA"),
       @ActivationConfigProperty(propertyName="messagingType", propertyValue="javax.jms.MessageListener")
      
       })
      public class ConcreteMDB1 extends AbstractMDB{
       public void operateMessage(Element message){
      
       }
      }
      


      Problem is that this code does not deploy :(

      It throws a "unable to determine messagingType interface for MDB"

      Is there a way to have an MDB that does not directly implements the MessageListener Interface? Could it be done according to the spec?

      Regards