Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 68363 invoked from network); 15 Dec 2007 11:04:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2007 11:04:28 -0000 Received: (qmail 80830 invoked by uid 500); 15 Dec 2007 11:04:16 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 80807 invoked by uid 500); 15 Dec 2007 11:04:16 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 80794 invoked by uid 99); 15 Dec 2007 11:04:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 15 Dec 2007 03:04:16 -0800 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,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; Sat, 15 Dec 2007 11:03:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1J3UoF-0007C9-S1 for users@activemq.apache.org; Sat, 15 Dec 2007 03:03:55 -0800 Message-ID: <14349755.post@talk.nabble.com> Date: Sat, 15 Dec 2007 03:03:55 -0800 (PST) From: Dave Song To: users@activemq.apache.org Subject: Re: Messages are blocked in queue when using JDBC Master/Slave In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: davesong07@gmail.com References: <14334149.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org No. I am using AMQ4.1.1 stable with Spring2.0. Thank you Hiram Chirino wrote: > > You using AMQ 5.0.0 ?? > > On Dec 14, 2007 6:23 AM, Dave Song wrote: >> >> Hi,there >> >> I have a question when using JDBC Master/Slave. Some of the messages that >> have sent to queue are not consumed by messageListener >> >> >> I used ActiveMQ with spring. It worked perfect with one broker. the beans >> configuration is like: >> >> >> > class="org.springframework.jms.core.JmsTemplate"> >> > value="ActiveMQ.In.twoBrokersTest" /> >> >> >> >> >> >> > class="org.apache.activemq.pool.PooledConnectionFactory"> >> >> > >> class="org.apache.activemq.ActiveMQConnectionFactory"> >> > >> value="tcp://192.168.1.102:61616"/> >> >> >> >> >> > class="activemqTest.twoBrokers.TwoBrokersTestListener"> >> >> >> > >> class="org.springframework.jms.listener.DefaultMessageListenerContainer"> >> >> > ref="twoBrokersTestJmsFactory" /> >> > value="ActiveMQ.In.twoBrokersTest" /> >> > ref="twoBrokersTestQueueListener" /> >> > value="CLIENT_ACKNOWLEDGE" /> >> >> >> >> >> To made it work more reliable, i tried to use JDBC Master/Slave cluster. >> I >> changed the brokerURL to: >> >> >> failover:(tcp://192.168.1.102:61616,tcp://192.168.1.236:61616) >> >> And start two brokers in different PC. I configurate both of the >> activemq.xml to use the jdbcPersistenceAdapter, like below: >> >> >> > useDatabaseLock="false"/> >> >> >> The DB I used is SQLServer 2000. So I have to set useDatabaseLock to >> false >> or else there will be an exception. >> >> >> Then I sent some messages to queue with an interval. the problem is some >> of >> the messages would not be consumed by the >> messageListenr(twoBrokersTestQueueListener) if the interval is more than >> 30 >> seconds. That is to say, it work fine if i sent the messages every 20 (or >> any interval <= 29) seconds. >> >> >> The only related constant I konw whose default value is set to 30 seconds >> is >> "MaxInactivityDuration". I have tried to configurate >> "wireFormat.maxInactivityDuration=0" in both client and broker to disable >> it. However, I didn't work. >> >> It is very strange that "interval" makes the listeners not working as >> expected. >> >> Any help/suggestions would be appreciated >> >> Thank you in advance, >> >> Dave >> -- >> View this message in context: >> http://www.nabble.com/Messages-are-blocked-in-queue-when-using-JDBC-Master-Slave-tp14334149s2354p14334149.html >> Sent from the ActiveMQ - User mailing list archive at Nabble.com. >> >> > > > > -- > Regards, > Hiram > > Blog: http://hiramchirino.com > > Open Source SOA > http://open.iona.com > > -- View this message in context: http://www.nabble.com/Messages-are-blocked-in-queue-when-using-JDBC-Master-Slave-tp14334149s2354p14349755.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.