3 Replies Latest reply on Oct 13, 2011 9:43 AM by kotaris

    Service Invoker deliverSync failing - no defined queue with name <request_queue_name>_reply

    kotaris Newbie

      Hi,

       

      I am using Service Invoker to test deliverSync and it is failing with -

       

      javax.jms.JMSException

        : There is no administratively defined queue with name:queue/test_esb_reply

       

      Any toughts on why this error is coming? I have a jms provider with -

       

      <jms-provider connection-factory="ConnectionFactory" name="TestMQ">

      <jms-bus busid="testGWChannel">

      <jms-message-filter dest-name="queue/test_gw" dest-type="QUEUE"/>

      </jms-bus>

      <jms-bus busid="testESBChannel">

      <jms-message-filter dest-name="queue/test_esb" dest-type="QUEUE"/>

      </jms-bus>

      </jms-provider>

      Thanks

        • 1. Re: Service Invoker deliverSync failing - no defined queue with name <request_queue_name>_reply
          Sven-Jørgen Karlsen Newbie

          Hi,

          have you deployed the JMS queue with the name mentioned in the error message?

          If not, you need to add a declaration to your deployment descriptor for JBoss Messaging

          or HornetQ (depending on your JBoss AS version, 5.x ships with JBM, 6.x with HornetQ).

          These files are usually named jbm-queue-service.xml and hornetq-jms.xml for JBM and HornetQ,

          respectively.

           

           

          Sven-Jørgen

          • 2. Re: Service Invoker deliverSync failing - no defined queue with name <request_queue_name>_reply
            kotaris Newbie

            I deployed both the queue/test_gw and queue/test_esb, it is working with deliverAsync.

             

            It is failing with deliverSync. Should i deploy the default jms reply queue's also? I have not seen any examples with synchronus esb messages all examples are with deliverAsync.

            • 3. Re: Service Invoker deliverSync failing - no defined queue with name <request_queue_name>_reply
              kotaris Newbie

              Finally It worked. For synchronous delivery using service invoker we need to define and deploy the default <request_queue_name>_reply queues also.

               

              In ESB in deployment.xml declare -

               

               

               

               

               

               

              <

               

              jbossesb-deployment

              >

              <

               

              depends>jboss.esb.quickstart.destination:service=Queue,name=test_esb</depends

              >

              <

               

              depends>jboss.esb.quickstart.destination:service=Queue,name=test_gw</depends

              >

              <

               

              depends>jboss.esb.quickstart.destination:service=Queue,name=test_esb_reply</depends

              >

              <

               

              depends>jboss.esb.quickstart.destination:service=Queue,name=test_gw_reply</depends

              >

              </

               

              jbossesb-deployment

              >

               

              and in the server test-queue-service.xml -

               

              <mbean code="org.jboss.jms.server.destination.QueueService"

              name="jboss.esb.quickstart.destination:service=Queue,name=test_gw"

              xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

              <depends>jboss.messaging:service=PostOffice</depends>

              </mbean>

              <mbean code="org.jboss.jms.server.destination.QueueService"

              name="jboss.esb.quickstart.destination:service=Queue,name=test_esb"

              xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

              <depends>jboss.messaging:service=PostOffice</depends>

              </mbean>

              <mbean code="org.jboss.jms.server.destination.QueueService"

              name="jboss.esb.quickstart.destination:service=Queue,name=test_gw_reply"

              xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

              <depends>jboss.messaging:service=PostOffice</depends>

              </mbean>

              <mbean code="org.jboss.jms.server.destination.QueueService"

              name="jboss.esb.quickstart.destination:service=Queue,name=test_esb_reply"

              xmbean-dd="xmdesc/Queue-xmbean.xml">

              <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>

              <depends>jboss.messaging:service=PostOffice</depends>

              </mbean>

               

              Thanks