Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-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 50C3D9880 for ; Thu, 26 Jul 2012 13:36:19 +0000 (UTC) Received: (qmail 42441 invoked by uid 500); 26 Jul 2012 13:27:16 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 66990 invoked by uid 500); 26 Jul 2012 13:25:19 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 38832 invoked by uid 99); 26 Jul 2012 09:42:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 09:42:35 +0000 X-ASF-Spam-Status: No, hits=-1.6 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: 194.35.218.66 is neither permitted nor denied by domain of Alistair.Young@uhi.ac.uk) Received: from [194.35.218.66] (HELO gwsmtp.uhi.ac.uk) (194.35.218.66) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jul 2012 09:42:30 +0000 Received: from UHI-OUT-MTA by gwsmtp.uhi.ac.uk with Novell_GroupWise; Thu, 26 Jul 2012 10:42:07 +0100 Message-Id: <50111EF60200008A0004EB79@gwsmtp.uhi.ac.uk> X-Mailer: Novell GroupWise Internet Agent 8.0.2 Date: Thu, 26 Jul 2012 10:41:58 +0100 From: "Alistair Young" To: Subject: Re: Using ActiveMQConnectionFactory and ActiveMQComponent together Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org thank you very very much - that transaction config works with the route. And thank you for the test code which I now intend to study. Hopefully I'll produce a blog post useful to others. cheers, Alistair ------------------- Alistair Young Senior Software Engineer UHI@Sabhal M�r Ostaig >>> Christian M�ller 25/07/12 10:57 PM >>> Checkout [1]. There is a test which tests JMS transaction in Camel with the configuration you can find here [2]. [1] https://github.com/muellerc/camel-in-transaction/ [2] https://github.com/muellerc/camel-in-transaction/blob/master/src/test/resources/META-INF/spring/JmsTransactionSampleTest-context.xml Best, Christian On Wed, Jul 25, 2012 at 2:44 PM, Alistair Young wrote: > this is my camel.xml: > > https://gist.github.com/3175958 > > The commented out ActiveMQComponent section for transactions, if used, > causes almost 100% message loss in the 'blackboard' route. I can only > use JmsTransactionManager + ActiveMQConnectionFactory. The commented out > section is from Camel in Action and is also on the camel site but I > can't use it with that route. > > Although I have the route working with transactions, I'd really like to > understand why the documentation uses both ActiveMQConnectionFactory and > ActiveMQComponent. That works fine with simple transacted routes but not > with the filter/simple in the route. > > any help would be appreciated. > > thanks, > > Alistair > > > ------------------- > Alistair Young > Senior Software Engineer > UHI@Sabhal M�r Ostaig > >>> "Alistair Young" 25/07/12 12:59 PM >>> > I've been following the Camel in Action book which uses > ActiveMQConnectionFactory and ActiveMQComponent in the same camel.xml > for transactions. If I use this config about 80% of messages are lost. I > have to use ActiveMQConnectionFactory and remove ActiveMQComponent. Is > the use of both only for standalone Camel use and only use one when it's > running inside ActiveMQ? > > thanks, > > Alistair > > > > ------------------- > Alistair Young > Senior Software Engineer > UHI@Sabhal M�r Ostaig > >