Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 46171 invoked from network); 8 Aug 2006 07:32:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 8 Aug 2006 07:32:22 -0000 Received: (qmail 85108 invoked by uid 500); 8 Aug 2006 07:32:21 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 85092 invoked by uid 500); 8 Aug 2006 07:32:21 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 85083 invoked by uid 99); 8 Aug 2006 07:32:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 00:32:21 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of james.strachan@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2006 00:32:19 -0700 Received: by nf-out-0910.google.com with SMTP id a4so122450nfc for ; Tue, 08 Aug 2006 00:31:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aMiABnKQB8V+SPWOGjM2kIV8rgmacow55GOqxxvMr31Ewd++Z6uJv9CTZMVMh5zS/L06TMZ9xeyUcW8PSzK18rg/Nij6TrepZDWFk0YOSthEq4DWQ9LsQkQOcpLCVGOCRL+PKYM3wJA01jez5vEtJm6TepquS5vfhY376zatMDs= Received: by 10.78.170.17 with SMTP id s17mr2512216hue; Tue, 08 Aug 2006 00:31:57 -0700 (PDT) Received: by 10.78.173.20 with HTTP; Tue, 8 Aug 2006 00:31:57 -0700 (PDT) Message-ID: Date: Tue, 8 Aug 2006 08:31:57 +0100 From: "James Strachan" To: activemq-users@geronimo.apache.org Subject: Re: Spring Embedded broker Journal already opened error In-Reply-To: <5697521.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: <5697521.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Are you also explicitly creating an embedded broker yourself? If so add a depens-on in the connection factory to the broker On 8/8/06, jamo wrote: > > I'm getting the following error when trying to start an embedded broker in my > Spring web app (spring 2.0rc2 & activemq 4.0.1): > BrokerService] Failed to start ActiveMQ JMS Message Broker. Reason: > java.io.IOException: Journal is already opened by this application. > > According to a couple of posts that I've found ( > http://goopen.org/confluence/display/ACTIVEMQ/Journal+is+already+opened+by+this+application > & > http://www.activemq.org/site/vm-transport-reference.html ), > with an embedded broker, the connection factory can start before the broker > creating 2 instances of activemq (and the error). But, as I understand it, > I'm creating the broker and connection factory in the same bean, so I don't > see how to seperate the two and add the suggested "depends-on"??? > > Can you explain how to work around the problem given the following config: > > > class="org.apache.activemq.ActiveMQConnectionFactory"> > > > > > class="org.springframework.jms.core.JmsTemplate"> > > > > > > class="org.apache.activemq.command.ActiveMQQueue"> > > > > > class="com.xxxx.dist.bizlinx.server.service.impl.QueueEmailService"> > > > > > class="com.xxxx.dist.bizlinx.server.service.impl.SendEmailService"> > > > > class="org.springframework.jms.listener.DefaultMessageListenerContainer"> > > > > > > Thanks > > -- > View this message in context: http://www.nabble.com/Spring-Embedded-broker-Journal-already-opened-error-tf2069517.html#a5697521 > Sent from the ActiveMQ - User forum at Nabble.com. > > -- James ------- http://radio.weblogs.com/0112098/