Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 67034 invoked from network); 7 Aug 2006 11:06:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Aug 2006 11:06:34 -0000 Received: (qmail 74612 invoked by uid 500); 7 Aug 2006 11:06:33 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 74594 invoked by uid 500); 7 Aug 2006 11:06:33 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 74585 invoked by uid 99); 7 Aug 2006 11:06:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 04:06:33 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_YAHOO_RCVD,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Aug 2006 04:06:32 -0700 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1GA2vz-0007KK-GI for activemq-users@geronimo.apache.org; Mon, 07 Aug 2006 04:06:11 -0700 Message-ID: <5683038.post@talk.nabble.com> Date: Mon, 7 Aug 2006 04:06:11 -0700 (PDT) From: Venkatg To: activemq-users@geronimo.apache.org Subject: Re: Changing Message Selector In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-Sender: venkatabbu@yahoo.com X-Nabble-From: Venkatg References: <5682547.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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.