2 Replies Latest reply on May 14, 2003 3:53 PM by semi

    Queue not bound

    cvandyck

      I have a Message driven bean that listens on a queue named CXMLPublishQueue. I have two ways of sending messages to that queue. One, from the command line, and two, from within an EJB or web application class.

      In the latter case, whenever I try to lookup the queue with JNDI, I get an error saying the queue is not bound.

      In the command line, I use "java:/queue/CXMLPublishQueue" for the lookup. This works.

      I have tried:

      "java:/queue/CXMLPublishQueue";
      "queue/CXMLPublishQueue";
      "CXMLPublishQueue";

      From within the EJBs or web application classes, and none of these work. All of my other beans and what have you are able to be looked up with ease from both the command line and other EJBs.

      At the bottom of jbossmq-service.xml, I have the queue defined:


      <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
      <depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager



      Any ideas? thanks :)

      Collin

        • 1. Re: Queue not bound

          None of what you say makes sense.

          The default binding for a queue is
          queue/CXMLPublishQueue

          The java:/ namespace is only available in the
          same VM so I don't how you can use it from
          a commandline outside the VM.

          I suspect you have a problem with your JNDI config
          or the queue is not really in the same VM.

          Regards,
          Adrian

          • 2. Re: Queue not bound
            semi

            Are the files
            jbossmq-client.jar and concurrent.jar on your classpath?
            Both are located in ...\jboss#\client