3 Replies Latest reply on Jan 15, 2009 3:19 AM by beve

    CLIENT_ACKNOWLEDGE

    sm0k3rz

      Hi,
      there's a method to wait until the service has finished processing the message and then send a commit on a jms queue?

      I think is possible by setting acknowledge-mode to CLIENT_ACKNOWLEDGE

      There's an'example of this?

      Thanks.

        • 1. Re: CLIENT_ACKNOWLEDGE
          beve

          Hi,

          if you are using a JMSGateway you can have your client wait for a response on a response queue and correlate the message using a correlation id. You can find an example of this in the jms_router quickstart.

          Would that work in you situation?

          regards,

          /Daniel

          • 2. Re: CLIENT_ACKNOWLEDGE
            nl

            But the response queue is predefined by the request queue (<request queue name>_reply). And this won't work if you have multiple clients, since queues are not shared among clients (you need topics for that).

            Regards,
            Niels

            • 3. Re: CLIENT_ACKNOWLEDGE
              beve

               

              But the response queue is predefined by the request queue (<request queue name>_reply

              The response queue is not tied to the request queue. If you take a look at the configuration for the jms_router quickstart you can see that the jms destination can be named anything.

              And this won't work if you have multiple clients, since queues are not shared among clients (you need topics for that).

              The jms destination can be a topic if that is needed by your application.

              regards,

              /Daniel