Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 14583 invoked from network); 9 Jul 2007 19:37:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 Jul 2007 19:37:29 -0000 Received: (qmail 76875 invoked by uid 500); 9 Jul 2007 19:37:30 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 76847 invoked by uid 500); 9 Jul 2007 19:37:30 -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 76838 invoked by uid 99); 9 Jul 2007 19:37:30 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 12:37:30 -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 sukoneru@cisco.com designates 171.71.176.71 as permitted sender) Received: from [171.71.176.71] (HELO sj-iport-2.cisco.com) (171.71.176.71) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 09 Jul 2007 12:37:27 -0700 Received: from sj-dkim-3.cisco.com ([171.71.179.195]) by sj-iport-2.cisco.com with ESMTP; 09 Jul 2007 12:37:06 -0700 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ao8CANIpkkarR7PD/2dsb2JhbAA X-IronPort-AV: i="4.16,517,1175497200"; d="scan'208"; a="384434111:sNHT157154948" Received: from sj-core-2.cisco.com (sj-core-2.cisco.com [171.71.177.254]) by sj-dkim-3.cisco.com (8.12.11/8.12.11) with ESMTP id l69Jb51e016431 for ; Mon, 9 Jul 2007 12:37:05 -0700 Received: from xbh-sjc-211.amer.cisco.com (xbh-sjc-211.cisco.com [171.70.151.144]) by sj-core-2.cisco.com (8.12.10/8.12.6) with ESMTP id l69Jb5mq004856 for ; Mon, 9 Jul 2007 19:37:05 GMT Received: from xmb-sjc-21a.amer.cisco.com ([171.70.151.152]) by xbh-sjc-211.amer.cisco.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 9 Jul 2007 12:37:05 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: Trying to get started: how do I configure Tomcat to run ActiveMQ? Date: Mon, 9 Jul 2007 12:37:05 -0700 Message-ID: <5BD9FA70F5EDAC43AB816A5FDE30F6AC04A276F6@xmb-sjc-21a.amer.cisco.com> In-Reply-To: <5BD9FA70F5EDAC43AB816A5FDE30F6AC04A276DF@xmb-sjc-21a.amer.cisco.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Trying to get started: how do I configure Tomcat to run ActiveMQ? Thread-Index: AcfCQQwsM+uXRM9nQ2aDJBWKPHMLOAAF1HUgAAIH0hA= References: <11504140.post@talk.nabble.com> <11504393.post@talk.nabble.com> <5BD9FA70F5EDAC43AB816A5FDE30F6AC04A276DF@xmb-sjc-21a.amer.cisco.com> From: "Suchitha Koneru \(sukoneru\)" To: X-OriginalArrivalTime: 09 Jul 2007 19:37:05.0645 (UTC) FILETIME=[87ECF1D0:01C7C260] DKIM-Signature: v=0.5; a=rsa-sha256; q=dns/txt; l=4317; t=1184009825; x=1184873825; c=relaxed/simple; s=sjdkim3002; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=sukoneru@cisco.com; z=From:=20=22Suchitha=20Koneru=20\(sukoneru\)=22=20 |Subject:=20RE=3A=20Trying=20to=20get=20started=3A=20how=20do=20I=20confi gure=20Tomcat=20to=20run=20ActiveMQ? |Sender:=20; bh=ZQA9IHd/Qmum0jkUhWP/1XEqs5AmQzmEydSCHw9muwI=; b=rqMoIBH2XtoXtuO4VYw5iufNZZJZMZMrPIz4Qv+q4tBgIc/v8U9Kxr8ZshVM4zqvRMN21O/j vnR36OYbVFT1qgradUj362hiGdSgfOx2ZuifEF5vsmAbHRLOve5/wNGy; Authentication-Results: sj-dkim-3; header.From=sukoneru@cisco.com; dkim=pass ( sig from cisco.com/sjdkim3002 verified; ); X-Virus-Checked: Checked by ClamAV on apache.org There is this link for vm transport as well=20 http://activemq.apache.org/vm-transport-reference.html=20 -----Original Message----- From: Suchitha Koneru (sukoneru)=20 Sent: Monday, July 09, 2007 12:31 PM To: users@activemq.apache.org Subject: RE: Trying to get started: how do I configure Tomcat to run ActiveMQ? The approach which I used for starting active mq broker via Tomcat server is as follows=20 1) Include the connection factory for starting the active mq broker in Tomcat/conf/context.xml as follows =09 Make sure that activemq.xml should be present in the classpath of Tomcat. You can also specify brokerConfig as brokerConfig=3Dxbean:file:./activemq.xml. =20 3)The active mq jars should be placed under (Tomcat/common/lib) of Tomcat=20 4)The Queues/Topics can be defined under Tomcat/conf/context.xml. =20 =20 =20 =20 5) The code for connecting to the broker is as follows=20 =09 Ictx =3D new javax.naming.InitialContext(); envContext =3D (Context) Ictx.lookup("java:comp/env"); TopicConnectionFactory sampleconnectionFactory =3D =09 (TopicConnectionFactoryenvContext.lookup("jms/ConnectionFactory"); The broker is created and started when the first attempt to connect to the broker is made. Thanks, Suchitha. -----Original Message----- From: Sandeep Chayapathi [mailto:sandeep@wssource.com]=20 Sent: Monday, July 09, 2007 8:51 AM To: users@activemq.apache.org Subject: Re: Trying to get started: how do I configure Tomcat to run ActiveMQ? Hi, Im not sure if activemq can be started via tomcat, however I know you can publish/subscribe to activemq topics/queue over web interface. You need to copy/link few of the jar files in activemq/lib and activemq/lib/optional to tomcat's lib folder. Then in tomcat's conf/web.xml: 1. add context params params for: org.apache.activemq.brokerURL and turn on=20 org.apache.activemq.embeddedBroker 2. map REST servlets, mainly the : org.apache.activemq.web.AjaxServlet and=20 org.apache.activemq.web.MessageServlet 3. map url to the above servlets, by practise, you can use /amq and /message for further help, checkout the https://svn.apache.org/repos/asf/activemq/trunk/activemq-web-demo/ activemq-web-demo=20 - Sandeep =20 Henk van Voorthuijsen wrote: >=20 > After downloading ActiveMQ 4.1.1, I managed to sucessfully run it as=20 > stand-alone. > As a following step, I tried to get Tomcat to start the same process - > and that's where I get lost! >=20 > I have tried adding a ConnectionFactory and Queue to the=20 > element, and they do show up on the resource=20 > page of the Tomcat manager, but so far I can see no processes being started. >=20 > A step-by-step description of how to do this would be much appreciated. >=20 > Henk van Voorthuijsen >=20 > PS. My configuration: > Windows XP > Tomcat 5.5.17 > ActiveMQ 4.1.1 >=20 >=20 >=20 -- View this message in context: http://www.nabble.com/Trying-to-get-started%3A-how-do-I-configure-Tomcat -to-run-ActiveMQ--tf4050129s2354.html#a11504393 Sent from the ActiveMQ - User mailing list archive at Nabble.com.