Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 84638 invoked from network); 28 Jul 2008 21:37:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jul 2008 21:37:07 -0000 Received: (qmail 53232 invoked by uid 500); 28 Jul 2008 21:37:05 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 53213 invoked by uid 500); 28 Jul 2008 21:37:05 -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 53202 invoked by uid 99); 28 Jul 2008 21:37:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Jul 2008 14:37:05 -0700 X-ASF-Spam-Status: No, hits=4.0 required=10.0 tests=DNS_FROM_OPENWHOIS,FORGED_YAHOO_RCVD,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, 28 Jul 2008 21:36:08 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KNaOQ-0002K6-4x for users@activemq.apache.org; Mon, 28 Jul 2008 14:36:34 -0700 Message-ID: <18699994.post@talk.nabble.com> Date: Mon, 28 Jul 2008 14:36:34 -0700 (PDT) From: skomarla To: users@activemq.apache.org Subject: Re: Master/Slave JDBC persistence using embedded broker in JBoss In-Reply-To: <18699988.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: skomarla@yahoo.com References: <18698970.post@talk.nabble.com> <18699988.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org I did see that but I guess I was hoping for this to be a little more elegant. I feel that having to define all the failover URLs defeats the purpose of in-vm protocol in the case of an embedded master slave. It would be have been nice if the in vm broker is started in a "slave" mode, where it would forward the messages to the master. Perhaps it was my misunderstanding of ActiveMQ, but I thought broker discovery would have helped achive this. I can't use networked brokers because I want all the nodes to share the same database. Hans Bausewein wrote: > > First of all, I'm not sure whether I'm the right person to answer your > questions. > There may be more uses of ActiveMQ than I know of. > > I've deployed 5.1.0 and the development version in a clustered JBoss > environment with pure master/slave and as a single broker (because of some > issues). > > > skomarla wrote: >> >> Hello, >> >> I'm having trouble getting a master slave setup working using an embedded >> broker in JBoss with JDBC persistence. I've done some searching to see if >> there is a workaround, but the only thing i've seen seems to be to either >> run master/slave separately, which is what I'm trying to avoid. >> >> The overview of the architecture is this. >> 1) There will be multiple JBoss instances each hosting a spring based >> application, which contain JMS listeners (using the spring's >> org.springframework.jms.listener.DefaultMessageListenerContainer). >> 2) In order to keep the deployment as simple as possible, we have decided >> to use the embedded activemq broker and have each node use the in vm >> transport protocol. >> 3) I'm using activemq 5.1.0, and so I don't have a problem with the slave >> node completing its startup sequence. >> >> My problem occurs when my spring based application deploys. >> - The master node completes its start up sequence and the application >> deploys. >> - The slave node complete's startup sequence without blocking, but when >> the application deploys, the DefaultMessageListenerContainer repeatedly >> tries to connect to the broker. This fails with the below exception. >> (seemingly because the slave has not started its transport connectors >> which it seems to only do so when it becomes a master) >> > > The documentation is quite clear: > > http://activemq.apache.org/jdbc-master-slave.html > > "Only the master broker starts up its transport connectors and so the > clients can only connect to the master." > > If you want to know why, one of the designers/developers probably better > answers that. > > I guess it's a lot easier to accept messages on one entry point only. > > Hans > > -- View this message in context: http://www.nabble.com/Master-Slave-JDBC-persistence-using-embedded-broker-in-JBoss-tp18698970p18699994.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.