Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E2771D7A3 for ; Wed, 27 Jun 2012 09:55:34 +0000 (UTC) Received: (qmail 58162 invoked by uid 500); 27 Jun 2012 09:55:34 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 57560 invoked by uid 500); 27 Jun 2012 09:55:33 -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 57531 invoked by uid 99); 27 Jun 2012 09:55:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 09:55:32 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-we0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 09:55:27 +0000 Received: by wejx9 with SMTP id x9so637834wej.2 for ; Wed, 27 Jun 2012 02:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=igg+K7h5Ddtl7E4Z5tXvYc3vPdzu7BVC94BYTvcI9mU=; b=SZnjC4EvlfOQdUk1Kk8c2FjSM1Cxqkx1hhsJM/0h3lIT19WCYyB41zoLM+4MCCk2p7 XRCLBcg9zDaQIHTg560Etq381AeWxr9Yo1YjemWBP7NRZlM83E9+m2zxT9INdQ6IT48Q /a4DyfcRiSnOKmTl5N+XrWNK7dmxEMMaIjkdsGXBIfZ3ZlO08RjC1rgnSNHBJveQJ2Ht JHuB+3J6ty7kdnF6ZWzfdJVG7jnjVmISKvYPOTumjhB8M+d9l3XcyzRFZgGOu1gwP6zq DvVspIIXyRI9qpDO/h9dGSR/d3WhH/VuDGcRUy/YMxq73MnI8VratQFwZfMy1+IUsB3t tVxw== MIME-Version: 1.0 Received: by 10.180.80.37 with SMTP id o5mr3319467wix.12.1340790906128; Wed, 27 Jun 2012 02:55:06 -0700 (PDT) Received: by 10.194.34.104 with HTTP; Wed, 27 Jun 2012 02:55:06 -0700 (PDT) In-Reply-To: <1340769361904-4653602.post@n4.nabble.com> References: <1340769361904-4653602.post@n4.nabble.com> Date: Wed, 27 Jun 2012 10:55:06 +0100 Message-ID: Subject: Re: question about ActiveMQ, jdbcPersistenceAdapter and MasterSlave From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On 1) the broker schedular maintains its own file based store, and sends the messages when they are due. On 2) Have a read of https://issues.apache.org/jira/browse/AMQ-3654?focusedCommentId=3D13294679&= page=3Dcom.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#com= ment-13294679 On 27 June 2012 04:56, Mohan Nade wrote: > We are using activemq in jdbc master slave configuration. extract pasted > below - > > =A0 =A0 > =A0 =A0 =A0 /> > =A0 =A0 > > > The messages are posted to queues and consumers are registered to these > queues. > > =A0 =A0 =A0 =A0 =A0 =A0MessageProducer producer =3D session.createProduce= r(destination); > =A0 =A0 =A0 =A0 =A0 =A0producer.setDeliveryMode(DeliveryMode.PERSISTENT); > > The producer's delivery mode is set to persistent as pasted below. > Some messages are expected to be delivered with delay to be able to execu= te > them at specified time. > > The questions > 1. the messages are not appearing in ACTIVEMQ_MSGS till they are close to > the execution time. Should the messages not appear when the are "sent"? > > 2. Since we are looking for master slave using jdbc, the ' > useDatabaseLock=3D"true"' is set but even with a minute fluctuation in th= e db > connection, the master fails and the control is handed over to slave. > We have tried 'lockKeepAlivePeriod=3D"0" lockAcquireSleepInterval=3D"3000= 00"' > Is there a way to let the master wait for a defined time and then only fa= il? > > regards, > Mohan > > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/quest= ion-about-ActiveMQ-jdbcPersistenceAdapter-and-MasterSlave-tp4653602.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. --=20 http://fusesource.com http://blog.garytully.com