How to find the selector of a queue connection using Sonic m

Posted by bjorn_kroghrud on 18-Dec-2012 05:48

We seem to be having two mq clients that receive the same messages because they apparently have the same selector.

In order to smoke out the "wrong" client, I am trying to pick the specific client connection using the management api.

But, I am unable to find the selector (property?) in any of the proxy api objects.

Where is that property registered in the api?

Bjørn

All Replies

Posted by Bill Wood on 26-Oct-2013 14:50

I am not sure I fully understand the problem.  You mention a QueueConnection, so no two consumers should get the same message if it is a Queue you are reading from.

However, to the other part of the question, the MessageSelector is defined on the QueueReceiver or MessageConsumer object when it is created.  It is not a property of an object.

Look at the interface for progress.message.jclient.Session

For method:

MessageConsumer createConsumer(Destination destination, java.lang.String messageSelector, boolean NoLocal)

         Creates MessageConsumer for the specified destination, using a message selector.

(see documentation.progress.com/.../sonicmq_api)

This thread is closed