Return-Path: X-Original-To: apmail-activemq-users-archive@www.apache.org Delivered-To: apmail-activemq-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 761B6DC5B for ; Tue, 11 Sep 2012 07:22:45 +0000 (UTC) Received: (qmail 42854 invoked by uid 500); 11 Sep 2012 07:22:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 42298 invoked by uid 500); 11 Sep 2012 07:22:39 -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 42190 invoked by uid 99); 11 Sep 2012 07:22:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 07:22:36 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claus.ibsen@gmail.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lb0-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2012 07:22:32 +0000 Received: by lbol12 with SMTP id l12so164464lbo.2 for ; Tue, 11 Sep 2012 00:22:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; bh=2y2vWMlvhKhJLUIIflUVQua/LVkSQbp0qMkRawOLw0I=; b=jXaODgqxLM3xJK9VGB5zlpOtk+toc4jseCZbujbw++zJK5X9vmeXbKVkn6rCJLvWgx zh1Hb9LKc9B9DllsHx6F2QoL30CrtghqeofNabgl+hHosQ2RMEkQmBn+5c0ZXLxc9Xe1 zqiSRmFzrxCW/vjmKUwca01uLJ0nR1rXGcyxKn2J0l5DHTZdsXVQh57zUEXKasbqkHoP 3+O1d3wCKV15xVNBJ6NCWTbvxfMMgzY2P93aAiJVo0PFMftcPMaJUQC4/ZylLIpCJnF5 d7IepfPvww89rJFe9OffA23oWtZFpls4Wgmk2nDc625GU5+XWqPaH3GhT1HXlzhczQpA LyZg== Received: by 10.152.132.133 with SMTP id ou5mr14896331lab.45.1347348130529; Tue, 11 Sep 2012 00:22:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.7.230 with HTTP; Tue, 11 Sep 2012 00:21:50 -0700 (PDT) In-Reply-To: References: From: Claus Ibsen Date: Tue, 11 Sep 2012 09:21:50 +0200 Message-ID: Subject: Re: Newbie to activemq To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Chapter 8 of ActiveMQ in Action talks about running AMQ in various containers such as Tomcat http://manning.com/snyder/ On Tue, Sep 11, 2012 at 8:51 AM, Saikat Kanjilal wrot= e: > > Yes I saw that link already, however we are using spring in our infrastru= cture and unfortunately changing to Camel is currently not an option for me= . I feel like I am pretty close , just need to figure out whether this is = a tomcat jndi issue or a spring issue, the error message is not really clea= r :) > >> From: claus.ibsen@gmail.com >> Date: Tue, 11 Sep 2012 08:47:23 +0200 >> Subject: Re: Newbie to activemq >> To: users@activemq.apache.org >> >> Hi >> >> If you use Camel to communicate with JMS / ActiveMQ, then we have an >> example how to embed AMQ + Camel in Tomcat (eg a WAR app). You can >> take a look at this: >> http://camel.apache.org/activemq-camel-tomcat.html >> >> >> >> On Tue, Sep 11, 2012 at 8:44 AM, Saikat Kanjilal w= rote: >> > >> > Hello all,I'm new to activemq but not to java and spring and I would m= uch appreciate some help, I am trying to get activemq running with spring a= nd in embedded mode with Tomcat version 6. I have followed the following= wikis (http://www.tomcatexpert.com/blog/2010/12/16/integrating-activemq-to= mcat-using-local-jndi,http://icodingclub.blogspot.com/2011/09/spring-jms-wi= th-embeded-activemq-in.html) and gone through each of the steps, however in= both cases I end up with the following stack trace: >> > org.springframework.beans.factory.BeanCreationException: Error creatin= g bean with name 'connectionFactory': Invocation of init method failed; nes= ted exception is javax.naming.NamingException: Cannot create resource insta= nce >> > >> > It seems like either my JNDI setup is not correct in tomcat or there i= s some other spring issue. Also note that I am trying to get the consumer= and the producer to run on the same jvm. >> > I am running active mq version 5.6.0 with spring 3.0.5. >> > >> > Looking forward to your help. >> > Regards >> >> >> >> -- >> Claus Ibsen >> ----------------- >> FuseSource >> Email: cibsen@fusesource.com >> Web: http://fusesource.com >> Twitter: davsclaus, fusenews >> Blog: http://davsclaus.com >> Author of Camel in Action: http://www.manning.com/ibsen > --=20 Claus Ibsen ----------------- FuseSource Email: cibsen@fusesource.com Web: http://fusesource.com Twitter: davsclaus, fusenews Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen