Thanks James, How to change the selector using ActiveMQ APIs.
The following code is working fine consumer.close(); consumer = session.createConsumer(topic, filter); consumer.setMessageListener(this); But my only concern with the above code is, consumer might lose some of the messages published during close and create( small winodw but application will be out of sync event if one message is lost) Let me know if there is any better to do the same Thx Venkat -- View this message in context: http://www.nabble.com/Changing-Message-Selector-tf2062812.html#a5683038 Sent from the ActiveMQ - User forum at Nabble.com.
