Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 77737 invoked from network); 28 Jun 2007 22:03:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Jun 2007 22:03:16 -0000 Received: (qmail 78532 invoked by uid 500); 28 Jun 2007 22:03:19 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 78512 invoked by uid 500); 28 Jun 2007 22:03:18 -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 Delivered-To: moderator for users@activemq.apache.org Received: (qmail 68721 invoked by uid 99); 28 Jun 2007 21:57:45 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Message-ID: <28c3c9290706281457u77fe2ee7t229c4082c05132fd@mail.gmail.com> Date: Thu, 28 Jun 2007 23:57:12 +0200 From: "Mario Siegenthaler" To: users@activemq.apache.org Subject: Re: access to embedded broker In-Reply-To: <5BD9FA70F5EDAC43AB816A5FDE30F6AC0492F23D@xmb-sjc-21a.amer.cisco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <5BD9FA70F5EDAC43AB816A5FDE30F6AC0492F21E@xmb-sjc-21a.amer.cisco.com> <5BD9FA70F5EDAC43AB816A5FDE30F6AC0492F23D@xmb-sjc-21a.amer.cisco.com> X-Virus-Checked: Checked by ClamAV on apache.org Did you check the "Sharing embedded broker across webapp contexts"-thread (last week)? This was the exact same problem and serveral possible solutions (at least one of them I tested personally). Easy way: put the activemq in the common/lib and just let the to webapps connect to vm://localhost. Ways you can add a tcp-Connector to this broker are described in the other thread or in the vm-tp-reference (http://activemq.apache.org/vm-transport-reference.html) Mario On 6/28/07, Suchitha Koneru (sukoneru) wrote: > > I also observed that when configuring an embedded broker Tomcat > automatically starts the embedded broker when "vm" transport is used > and not for "tcp " transport. > > Thanks, > Suchitha. > -----Original Message----- > From: Suchitha Koneru (sukoneru) > Sent: Thursday, June 28, 2007 12:45 PM > To: users@activemq.apache.org > Subject: access to embedded broker > > Hello Active Mq users , > Can an external java process get access to an > embedded broker ? In our application we have > Tomcat server with two Web apps , Web App A and Web app B. These two > web apps exchange messages via the embedded broker. > > Is the embedded broker confined only to the JVM in which it is started > ?? in our case the embedded broker is started within the JVM of > Tomcat.Can an external java process connect to the embedded broker and > sent messages to these two web apps ? This process is entirely in a > different JVM . > > Please let me know, Based on your response I will have to decide if I > have use an embedded broker with "VM" transport or an external broker > with "TCP" transport. > > thank you so much, > Suchitha. > >