Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 91603 invoked from network); 18 Dec 2007 05:44:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 05:44:29 -0000 Received: (qmail 11908 invoked by uid 500); 18 Dec 2007 05:44:17 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 11879 invoked by uid 500); 18 Dec 2007 05:44:17 -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 11868 invoked by uid 99); 18 Dec 2007 05:44:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 21:44:17 -0800 X-ASF-Spam-Status: No, hits=4.8 required=10.0 tests=DEAR_SOMETHING,DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.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; Tue, 18 Dec 2007 05:44:06 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1J4VFF-0005hM-QR for users@activemq.apache.org; Mon, 17 Dec 2007 21:43:57 -0800 Message-ID: <14384479.post@talk.nabble.com> Date: Mon, 17 Dec 2007 21:43:57 -0800 (PST) From: JS75 To: users@activemq.apache.org Subject: Re: Journal is locked In-Reply-To: <14379258.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: jean_su@aboveE.com References: <14375869.post@talk.nabble.com> <14379258.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org First, thank you for your apply~ I tried to assign name to each embedded broker.=20 And these twn connections starts successfully, however, they do not work as I wish! As URI as tcp://localhost:61616, producers send messages and consumers receive messages. After assigning names, they seemd to work without any relationship. Is there any thing I can do to make embedded VM broker as embedded TCP broker? BTW, I tried to upgrade activeMQ to 5.0, and I found this exception in console java.lang.NoSuchMethodError:=20 org.apache.activemq.ActiveMQMessageProducerSupport.getDestination()Ljavax/j= ms/Destination; Have I misses to include any lib? Sincerely, Jean ttmdev wrote: >=20 > Try assigning different names to your two embedded brokers. For example,= =20 >=20 > ActiveMQConnectionFactory connectionFactory =3D > new ActiveMQConnectionFactory(vm://clientbroker);=20 >=20 > ActiveMQConnectionFactory connectionFactory =3D > new ActiveMQConnectionFactory(vm://serverbroker);=20 >=20 > Joe >=20 >=20 >=20 > JS75 wrote: >>=20 >> Dear Sirs: >>=20 >> As a neophyte of activeMQ, I encountered some tasks, and please help me >> to solve them >">=20 >> I tried to embedded one broker into my connections -=20 >> producer (ClientSide) and consumer (ServerSide) separately in >> one JVM. >> =20 >> ActiveMQConnectionFactory connectionFactory =3D >> =09=09 new ActiveMQConnectionFactory(vm://localhost); >>=20 >>=20 >> However, when I started these two connections, the latter one has above >> messages in cosole >>=20 >> org.apache.activemq.store.DefaultPersistenceAdapterFactory >> createJournal >> =E8=B3=87=E8=A8=8A: Journal is locked... waiting 10 seconds for the j= ournal to be >> unlocked. >>=20 >> Unless did I close the former connection (usually Producer connection), >> the latter broker started (Consumer connection received)? >> But I wish each of them can work in pararrel as TCP can do?=20 >> Did I make any mistake or forget to do any configurations? >>=20 >> Sincerely, >> Jean >>=20 >=20 >=20 --=20 View this message in context: http://www.nabble.com/Journal-is-locked-tp143= 75869s2354p14384479.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.