0 Replies Latest reply on Oct 12, 2004 9:29 AM by Vidhi Vig

    JNDI API lookup failed

    Vidhi Vig Newbie

      JNDI API lookup failed: javax.naming.NameNotFoundException: jms not bound

      This jms is specified in my ejb-jar.xml as
      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
      <ejb-jar>
      <enterprise-beans>
      <message-driven>
      <ejb-name>Hello</ejb-name>
      <ejb-class>examples.MDB.MessageBean</ejb-class>
      <transaction-type>Container</transaction-type>
      <!--<transaction-type>Bean</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>-->
      <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>
      <resource-env-ref>
      <resource-env-ref-name>queue/Hello</resource-env-ref-name>
      <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
      </resource-env-ref>
      </message-driven>
      </enterprise-beans>
      </ejb-jar>

      as well as my jboss.xml as
      <?xml version="1.0"?>

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


      Its really urgent so plz help.