Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 83759 invoked from network); 6 Oct 2008 10:38:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Oct 2008 10:38:22 -0000 Received: (qmail 11774 invoked by uid 500); 6 Oct 2008 10:38:20 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 11746 invoked by uid 500); 6 Oct 2008 10:38:19 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 11734 invoked by uid 99); 6 Oct 2008 10:38:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 03:38:19 -0700 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=DNS_FROM_OPENWHOIS,DNS_FROM_SECURITYSAGE,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Oct 2008 10:37:16 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KmnTK-0002Bk-QD for dev@activemq.apache.org; Mon, 06 Oct 2008 03:37:50 -0700 Message-ID: <19835486.post@talk.nabble.com> Date: Mon, 6 Oct 2008 03:37:50 -0700 (PDT) From: Jigar Naik To: dev@activemq.apache.org Subject: Re: Consumer stop consuming messages from activeMQ In-Reply-To: <3a73c17c0810060317l5a919ab7yae5f2c4a5b5fa076@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: jigarnaik@interactcrm.com References: <19833825.post@talk.nabble.com> <3a73c17c0810060317l5a919ab7yae5f2c4a5b5fa076@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org actually i m acknowledging the message.. have a look at my code. http://www.nabble.com/file/p19835486/JmsUtil.java JmsUtil.java the JmsUtil.java contains three method... startConsume(..); consumeFromActiveMQ(..); and endConsume(..); I have got another file which calls the startConsume(); n then calls the consumeFromActiveMQ(); 10 times in a loop for reading 10 messages from activeMQ and than calls the endConsume(); Again after 10 second same cycle repeats... Regards, Jigar Gary Tully wrote: > > it seems like there is some problem with the acking of messages. If a > message is not acked, only 'prefetch' number of messages will be > dispatched. Can you use the JMX console to have a look at the broker > queue and see what state it is in, ie: the number of messages, number > dispatched etc. > Ensure that your consumer does ack the messages, possibly post the > code to your consumer. > > > 2008/10/6 Jigar Naik : >> >> Hi, >> i have written one thread, which will consume 10 messages from activeMQ >> after every 10 Seconds. >> >> but my consumer stops consuming message from activeMQ after some time. >> and >> the interval is unpredictable sometimes it stops consuming after 10 >> minutes... and sometimes after 10 hours. >> >> And the temporary solution i have found is Restarting the ActiveMQ >> Service. >> >> Once i restart the activeMQ Service it starts consuming. >> >> What could be the possible reason ? >> >> please help me solving this issue... it's been 15 days i am stumbling >> with >> this issue... >> >> Thanks >> Jigar >> -- >> View this message in context: >> http://www.nabble.com/Consumer-stop-consuming-messages-from-activeMQ-tp19833825p19833825.html >> Sent from the ActiveMQ - Dev mailing list archive at Nabble.com. >> >> > > -- View this message in context: http://www.nabble.com/Consumer-stop-consuming-messages-from-activeMQ-tp19833825p19835486.html Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.