1 Reply Latest reply on Mar 17, 2009 9:53 AM by Torsten Mielke

    one jms queue multiple services

    Domenic D Newbie

      Does anyone know if it is possible to configure multiple services(soap/jms) to use one JMS queue? I did manage to configure two services using jms, but when I send the request I am getting the following fault string.


      Message part dataDictionaryRequest was not recognized.not recognized. (Does it exist in service WSDL?)


      My guess is that each service is listening and randomly grabbing values off of the queue or one is always listening first...


      I am configuring the services using the spring option along with jaxws feature - example:



      "jmslistener" is my bean reference to all my JMS configuration i.e. connection factory and queues.


      Any help would be appreciated....




        • 1. Re: one jms queue multiple services
          Torsten Mielke Apprentice

          Are these different services with different WSDL interfaces? Then this will probably not work as both services would subscribe to the same JMS queue and potentially receive a SOAP message that they cannot parse (as it was intended for the other service). You could potentially try to use Message Selectors but I don't see any gain over simply using two different queues.


          If both services have the same WSDL interface, then it should work, although I have never tried it. You can implement a sort of load balancer that way with having both services subscribed to the same JMS queue.