7 Replies Latest reply on Feb 22, 2003 5:44 PM by Tom Noda

    NameNotFoundException: QueueConnectionFactory not bound

    Tom Noda Newbie

      Could some please help me out? I cannot find ConnectionFactory. My source codes and configurations are as follows:

      --- Source codes ---
      QueueConnectionFactory factory = (QueueConnectionFactory)context.lookup("java:comp/env/jms/queue/QueueConnectionFactory");
      QueueConnection connection = actory.createQueueConnection();

      --- ejb-jar.xml ---
      <resource-ref>
      <res-ref-name>jms/queue/QueueConnectionFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>

      --- jboss.xml ---
      <resource-ref>
      <res-ref-name>jms/queue/QueueConnectionFactory</res-ref-name>
      <jndi-name>ConnectionFactory</jndi-name>
      </resource-ref>

      And it gives me "QueueConnectionFactory not bound" message. How did I go wrong?