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 AA20AD177 for ; Wed, 7 Nov 2012 12:28:12 +0000 (UTC) Received: (qmail 27405 invoked by uid 500); 7 Nov 2012 12:28:12 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 27265 invoked by uid 500); 7 Nov 2012 12:28:12 -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 27249 invoked by uid 99); 7 Nov 2012 12:28:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 12:28:11 +0000 X-ASF-Spam-Status: No, hits=0.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of gary.tully@gmail.com designates 74.125.82.45 as permitted sender) Received: from [74.125.82.45] (HELO mail-wg0-f45.google.com) (74.125.82.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 Nov 2012 12:28:06 +0000 Received: by mail-wg0-f45.google.com with SMTP id dq12so956794wgb.14 for ; Wed, 07 Nov 2012 04:27:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=fKeaEwnl9j0c0CLKKYsRlMs0hr4t5v4P/UI41Q3V7n4=; b=IHO6OCQ6Nrj2zMwBgtxSxxf1AG4Bhri2gMfK+sGMNJIBJM3bfPhYfrB/fkeWSAZPbl CDxvU2yBurRTXuAU32swvnB0gZe0pSRxhPkic7u4Gtsro13KXmeOdkPeKpj1YxyPaTdN YUx66E4uVBQ3pczjjfESL8UHOfYYnl5a0OAEbKpWv6CJC0OM8dCopo3TUs0taNl+5x5I ia+8TCGd93KMrgyElPRcXaET02ldWcTToHQfqaYtHTFcS3lWFSJMqocZc+00FFR6Zlr5 g+ewXHKqrRjikAjtuvh1wf5QuDkf2GdTXRECVIoX3y7TXMUe3/pp/RDRC+KcUqkzYPla 5Gtw== MIME-Version: 1.0 Received: by 10.180.92.71 with SMTP id ck7mr7318913wib.20.1352291265525; Wed, 07 Nov 2012 04:27:45 -0800 (PST) Received: by 10.194.169.3 with HTTP; Wed, 7 Nov 2012 04:27:45 -0800 (PST) In-Reply-To: <1352290911620-4658913.post@n4.nabble.com> References: <1352238611425-4658865.post@n4.nabble.com> <1352290911620-4658913.post@n4.nabble.com> Date: Wed, 7 Nov 2012 12:27:45 +0000 Message-ID: Subject: Re: XaPooledConnectionFactory From: Gary Tully To: users@activemq.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org k, at least you have a workaround. I had a peek at the code and I see what you saw.. this is a regression from https://issues.apache.org/jira/browse/AMQ-4019 the xa factory has been left behind a bit with that refactor. On 7 November 2012 12:21, jsimmonsc wrote: > My entire context is below. > > If I switch out the org.apache.activemq.pool.XaPooledConnectionFactory with > a org.fusesource.jms.pool.XaPooledConnectionFactory, everything works as > expected except for the previously mentioned memory leak fixed in AMQ-3997. > > > Just in case it's needed, my route: > > from("activemq:josh.test.queue") > .transacted() > .to("activemq:josh.test.queue2") > .process(new Processor() { > public void process(Exchange arg0) throws Exception { > Thread.sleep(5000); > } > }) > .rollback(); > My context: > > > > josh.test > > > location="file:${user.home}/ApplicationData/amq.properties" /> > > interface="org.springframework.transaction.PlatformTransactionManager"/> > interface="javax.transaction.TransactionManager"/> > > class="org.apache.camel.spring.spi.SpringTransactionPolicy"> > ref="osgiPlatformTransactionManager"/> > value="PROPAGATION_REQUIRED"/> > > > class="org.apache.activemq.ActiveMQXAConnectionFactory"> > > > > > > class="org.apache.activemq.pool.XaPooledConnectionFactory" > init-method="start" destroy-method="stop"> > > /> > /> > > > class="org.apache.camel.component.jms.JmsConfiguration"> > > ref="osgiPlatformTransactionManager"/> > > > > class="org.apache.activemq.camel.component.ActiveMQComponent"> > > > > > > > -- > View this message in context: http://activemq.2283324.n4.nabble.com/XaPooledConnectionFactory-tp4658865p4658913.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://redhat.com http://blog.garytully.com