Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 16564 invoked from network); 26 May 2010 16:10:55 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 May 2010 16:10:55 -0000 Received: (qmail 13120 invoked by uid 500); 26 May 2010 16:10:55 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 13078 invoked by uid 500); 26 May 2010 16:10:55 -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 13070 invoked by uid 99); 26 May 2010 16:10:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 May 2010 16:10:55 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,SPF_HELO_PASS,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL 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; Wed, 26 May 2010 16:10:49 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1OHJBc-0000KY-Uz for users@activemq.apache.org; Wed, 26 May 2010 09:10:28 -0700 Message-ID: <28682881.post@talk.nabble.com> Date: Wed, 26 May 2010 09:10:28 -0700 (PDT) From: zzcat To: users@activemq.apache.org Subject: Re: ActiveMq integration with Spring 2.5 In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: evolye@gmail.com References: <28668647.post@talk.nabble.com> <28675837.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org Thanks bsnyder, The question on stackoverflow was my question. Thanks for your answer. But even I update it to 2.5.6, it still doesn't work. Here is part of my config file, I've been struggle with this for two days, I don't know if their are other ways to get transactions to work : bsnyder wrote: > > On Tue, May 25, 2010 at 9:48 PM, zzcat wrote: >> >> Hi Gary , even if I updated my spring to 2.5.6 , I still got the same >> error. >> Here is my stack trace. It says can't find >> "org.springframework.transaction.support.TransactionSynchronizationUtils.sameResourceFactory" >> >> actually this method does exist in 2.5.5. I guess there're some other >> issues. >> >> 10:23:49 ERROR Context initialization failed >> org.springframework.beans.factory.BeanCreationException: Error creating >> bean >> with name >> 'org.springframework.jms.listener.DefaultMessageListenerContainer#0' >> defined >> in ServletContext resource >> [/WEB-INF/config/spring/component/applicationContext-jms-activemq5.xml]: >> Invocation of init method failed; nested exception is >> java.lang.NoSuchMethodError: >> org.springframework.transaction.support.TransactionSynchronizationUtils.sameResourceFactory(Lorg/springframework/transaction/support/ResourceTransactionManager;Ljava/lang/Object;)Z > > I answered this question on StackOverflow: > > http://stackoverflow.com/questions/2905279/activemq-integration-with-spring-2-5/ > > I think it's because you have an older version of the spring-tx jar > first in your classpath. > > Bruce > -- > perl -e 'print > unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E );' > > ActiveMQ in Action: http://bit.ly/2je6cQ > Blog: http://bruceblog.org/ > Twitter: http://twitter.com/brucesnyder > > -- View this message in context: http://old.nabble.com/ActiveMq-integration-with-Spring-2.5-tp28668647p28682881.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.