3 Replies Latest reply on Mar 3, 2003 10:51 PM by mkerry

    jbossmq-destinations-service.xml

    schnelzer

      I am setting up new Topics and would like to assign a location other than "queue/queue-name" to bind to. I couldn't find a DTD or documentation on the details of setting the JNDIName in jbossmq-destinations-service.xml. Can someone point me in the right direction?

      Thanks for the help.

        • 1. Re: jbossmq-destinations-service.xml
          vinays

          Atleast from the quick start documentation, it seeems that all queues wd be created under queue subcontext and topics under the topic subcontext.
          So the JNDI name seems to be always the combination of the subcontext (say queue) and the mbean name that you provide in jbossmq-destinations-service.xml
          eg:

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

          hence the jndi name wd be "queue/A"

          • 2. Re: jbossmq-destinations-service.xml
            mkerry

            I believe you can change the jndi name of a destination by adding an attribute tag, as follows (this will define a queue that is accessible by the jndi name "jms/MyQueue"):


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


            jms/MyQueue


            • 3. Re: jbossmq-destinations-service.xml
              mkerry

              Sorry, I also meant to change the line:

              name="jboss.mq.destination:service=Queue,name=A">

              to

              name="jboss.mq.destination:service=Queue,name=MyQueue">

              You get the idea, though...