posted 14 years ago
Set a header in the message before you send it and when you create a receiver, create one using the overloaded api that specifies a selector expression.
In the msg producer
msg.setStringProperty("someName", "someValue);
and in the receiver (assuming a queue)
queueSession.createReceiver(queueObj, "someName=someValue");
That's just a sample to get you going in the right direction. Google for jms message selctors and there are very good tutorials out there that explains it fully.
ram.