Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 4361 invoked from network); 12 Jun 2007 08:07:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 08:07:47 -0000 Received: (qmail 63167 invoked by uid 500); 12 Jun 2007 08:07:50 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 63036 invoked by uid 500); 12 Jun 2007 08:07:49 -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 63027 invoked by uid 99); 12 Jun 2007 08:07:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 01:07:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of james.strachan@gmail.com designates 66.249.82.226 as permitted sender) Received: from [66.249.82.226] (HELO wx-out-0506.google.com) (66.249.82.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Jun 2007 01:07:45 -0700 Received: by wx-out-0506.google.com with SMTP id i28so1630205wxd for ; Tue, 12 Jun 2007 01:07:24 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GQbUDufOr9kykev+OSjmVOMNzG/fLfgqbh9/Bi1Ij8VraMVkKxuXsMALQ8PD8kBPdo+mzG44mUwjlp4twvZdaXd7I28RIWktKtqsVtE9NYrhlv6qvFrZ0PrLaJt8qmxQzLJFBWzuXjIHsG4UiHScKvkDUxyVKN4aD/PBeRHZnwE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RY/9GyOhWW6jjJ/IwQKxww5Iyz47CKJhPAbQuprpMVyxSyjd/dlDYtA/aiDW0h/HslUbU6vZQzujiNpmLN6L+NXspx4C67AztUKECQEpHfqtty2GPNQg9EdYUGBVMrCFAvutohH92hExtaUa53lWoQ4H3awMBeIfJwSQGWr6PoM= Received: by 10.90.80.8 with SMTP id d8mr6150867agb.1181635644775; Tue, 12 Jun 2007 01:07:24 -0700 (PDT) Received: by 10.90.67.18 with HTTP; Tue, 12 Jun 2007 01:07:24 -0700 (PDT) Message-ID: Date: Tue, 12 Jun 2007 09:07:24 +0100 From: "James Strachan" To: users@activemq.apache.org Subject: Re: Master/Slave on Weblogic In-Reply-To: <11070252.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <11068583.post@talk.nabble.com> <11070252.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org On 6/11/07, eta wrote: > > I've been messing with the JDBC database locker code recently, and yes, it > will work as you described. The default database locker service start() > method will not return until it has acquired the lock, indicating that it is > the master broker. > > I'm not sure what the recommended way around this would be, but what I would > do would be to run the BrokerService.start() method in a separate thread > from my servlet init() or service() methods. This will at least allow the > servlet to fully deploy even though the broker has not yet fully initialized > because it is a slave. Eric's exactly right; currnently the starting of a broker in master/slave is synchronous which would block the calling thread (such as a web app or Spring configuration) until it becomes the master. We need a way to allow the starting of the broker to be asynchronous to avoid blocking the calling thread. I've created a JIRA for this https://issues.apache.org/activemq/browse/AMQ-1273 In the mean time; another work around is to run the broker as a separate deployment unit in your server (e.g. in a separate web app) -- James ------- http://macstrac.blogspot.com/