3 Replies Latest reply on Dec 1, 2004 12:14 AM by raist_majere

    [JMS] Beginner : configuration

    j2ee

      Hello,

      I have deployed one client (servlet) in a war wich send message to a queue.
      I have deployed a MDB.

      My problem is :
      // LookUp connection factory via JNDI
      TopicConnectionFactory factory =
      (TopicConnectionFactory) ctx.lookup("ConnectionFactory");

      I have a "not bound error".
      I dont know where to configure the connection factory.

      Thanks for your help.

        • 1. Re: [JMS] Beginner : configuration
          raist_majere

          Which JBoss version are you using? How you declare the "ConnectionFactory" on the web-app.xml file and in jboss-web.xml file on your WAR?

          • 2. Re: [JMS] Beginner : configuration
            j2ee

            Thanks for your answer.
            I m using jboss-3.2.6. I have just declared my Connectionfactory in jboss.xml of my jar application, not in the client.
            When i change the default name "ConnectionFactory" in the code and jboss.xml, it doesnt work anymore.

            • 3. Re: [JMS] Beginner : configuration
              raist_majere

              If you want to access a resource from a web-app, you have to declare it using the resource-ref tag in web-app.xml (and if using JBoss, also within jboss-web.xml). If you haven't declared the connection factory to JMS, then it's normal that says "not bound".