From users-return-31188-apmail-activemq-users-archive=activemq.apache.org@activemq.apache.org Wed Jun 27 03:56:31 2012 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 65B31DC89 for ; Wed, 27 Jun 2012 03:56:31 +0000 (UTC) Received: (qmail 5166 invoked by uid 500); 27 Jun 2012 03:56:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 4998 invoked by uid 500); 27 Jun 2012 03:56:29 -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 4976 invoked by uid 99); 27 Jun 2012 03:56:29 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 03:56:29 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 216.139.250.139 is neither permitted nor denied by domain of mohannade@gmail.com) Received: from [216.139.250.139] (HELO joe.nabble.com) (216.139.250.139) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 27 Jun 2012 03:56:22 +0000 Received: from [192.168.236.139] (helo=joe.nabble.com) by joe.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1SjjMH-0006lu-U8 for users@activemq.apache.org; Tue, 26 Jun 2012 20:56:01 -0700 Date: Tue, 26 Jun 2012 20:56:01 -0700 (PDT) From: Mohan Nade To: users@activemq.apache.org Message-ID: <1340769361904-4653602.post@n4.nabble.com> Subject: question about ActiveMQ, jdbcPersistenceAdapter and MasterSlave MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit We are using activemq in jdbc master slave configuration. extract pasted below - The messages are posted to queues and consumers are registered to these queues. MessageProducer producer = session.createProducer(destination); producer.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 execute 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="true"' is set but even with a minute fluctuation in the db connection, the master fails and the control is handed over to slave. We have tried 'lockKeepAlivePeriod="0" lockAcquireSleepInterval="300000"' Is there a way to let the master wait for a defined time and then only fail? regards, Mohan -- View this message in context: http://activemq.2283324.n4.nabble.com/question-about-ActiveMQ-jdbcPersistenceAdapter-and-MasterSlave-tp4653602.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.