1 Reply Latest reply on Aug 13, 2004 7:41 AM by Raja

    MDB deployment

    Huai-Shih Wen Newbie

      I need help on MDB. I keep getting "JNDI lookup failed: javax.naming.NameNotFoundException: No object bound for java:comp/env/queue/MyTestQueue" when running the client.
      Do I miss some steps?

      following line was added into jbossmq-destinations-service.xml

      <mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=MyTestQueue"
      <depends optional-attribute-name="DestinationManager">
      jboss.mq:service=DestinationManager



      jboss.xml


      <enterprise-beans>
      <message-driven>
      <ejb-name>SimpleMessageMDB</ejb-name>
      <destination-jndi-name>queue/MyTestQueue</destination-jndi-name>
      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <resource-name>QueueConnectionFactory</resource-name>
      </resource-ref>
      </message-driven>
      </enterprise-beans>


      ejb-jar.xml

      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>SimpleMessageMDB</ejb-name>
      <ejb-class>com.hp.mdb.SimpleMessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      <resource-ref>
      <res-ref-name>jms/QCF</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>


      Harry Wen

        • 1. Re: MDB deployment
          Raja Master

          First off, this question doesnt belong here. Belongs in the messaging section.

          Second, no details of client are posted. Is this a standalone client? A standalone client cannot access java:comp/env space. you shud be able to access it using the java:/ namespace.