1 Reply Latest reply on May 18, 2004 3:58 AM by Raja

    Error - jms not bound

    snavjot Newbie

      Greetings,

      I have an MDB that sends email out. All I am trying to do is to send Message to MDB from my SLSB.

      __part of session bean tag in ejb-jar.xml__

      <resource-ref>
      <res-ref-name>jms/QueueConnectionFactory</res-ref-name>
      <res-type>javax.jms.QueueConnectionFactory</res-type>
      <res-auth>Container</res-auth>
      <res-sharing-scope>Shareable</res-sharing-scope>
      </resource-ref>

      __jboss.xml__


      <enterprise-beans>

      <ejb-name>MemberManager</ejb-name>
      <jndi-name>ejb/MemberManager</jndi-name>


      <ejb-name>Members</ejb-name>
      <jndi-name>ejb/Members</jndi-name>

      <message-driven>
      <ejb-name>EmailMDB</ejb-name>
      <destination-jndi-name>queue/N4EmailQ</destination-jndi-name>
      </message-driven>
      </enterprise-beans>

      <resource-managers>
      <resource-manager>
      <res-name>mail/N4Email</res-name>
      <res-jndi-name>java:/Mail</res-jndi-name>
      </resource-manager>

      <resource-manager>
      <res-name>jms/QueueConnectionFactory</res-name>
      <res-jndi-name>java:/JmsXA</res-jndi-name>
      </resource-manager>

      </resource-managers>


      Now, whne i try to lookup queue factory

      qFactory = (QueueConnectionFactory) ctxt.lookup("jms/QueueConnectionFactory");

      I got an error - "jms not bound".

      Is there anything else i need to do with my configuration?

      Any help is appreciated.

      - Navjot Singh