3 Replies Latest reply on Aug 13, 2006 10:37 AM by paata lominadze

    MDB and EJB3--Newbie Question

    Robert Morgan Newbie

      I'm trying to get a mdb working with jboss4.0.4.ga however i can't seam to get the examples to run. the ear file deploys but i do not see the queue that i indicate as the destination in the jndi namespace. and as a result i get a name not found exception when i do a context lookup.

      does anyone have any suggestions as to what i'm missing.

      here is the code in my example project:


      @MessageDriven(name ="MessageBean",activationConfig =
       @ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
       @ActivationConfigProperty(propertyName="destination", propertyValue="queue/mdb")
      public class MessageBean implements MessageListener {
       public void onMessage(Message arg0) {

      <?xml version="1.0" encoding="UTF-8"?>

      <?xml version="1.0" encoding="UTF-8"?>

      Thanks very much