3 Replies Latest reply on Jun 5, 2003 7:55 AM by adrian.brock

    One to one messages

    bhagyesht

      Is there a way to post messages from a publisher to only one particular subscriber? (other than having just one subscriber in one topic?)

        • 1. Re: One to one messages
          rtvkuijk

          you could have a filter in each subscriber and when you put the message make sure a propertie is specifically filled with a value that guarantees that only the filter of a certain subscriber matches the message

          • 2. Re: One to one messages
            bhagyesht

            thanks Ronald, Can you please elobrate a bit more on it and how can i achieve it?

            • 3. Re: One to one messages

              Set a property in the message
              that identifies the destination client.

              When the client subscribes, use a selector
              that only accepts messages with the client's
              property value.

              See the javadoc for javax.jms.Message or
              the jms spec for how to use selectors

              Regards,
              Adrian