1 Reply Latest reply on Jul 25, 2014 3:24 AM by ataylor

    Configure MDB with JBoss 7.1.0 in domain mode

    anuradhap

      Hi,

      I've deployed a mdb on my server that runs in domain mode. it got deployed successfully. But it is unable to receive messages on the queue.

      Do we need to do extra confiuration for MDB's with 7.1.0?

      Here is my mdb and i've attached my domain.xml.

      @MessageDriven(

        activationConfig = {

       

        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

        @ActivationConfigProperty(propertyName = "destination",propertyValue = "queue/test")

        }

        )

       

       

      public class MyFirstBean implements MessageListener {

       

       

       

       

         

          public MyFirstBean() {

              // TODO Auto-generated constructor stub

          }

       

       

          public void onMessage(Message message) {

        

        if (message instanceof TextMessage) {

        TextMessage txtMsg = (TextMessage) message;

        try {

        String msgRecieved = txtMsg.getText();

        System.out.println("Message Received at " + System.currentTimeMillis()/1000);

        //System.out.println("Message received is:  "+ msgRecieved);

        } catch (JMSException e) {

        e.printStackTrace();

        }

        }

             

          }

         

         

       

       

      }