Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 60748 invoked from network); 7 May 2009 14:33:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 May 2009 14:33:43 -0000 Received: (qmail 82827 invoked by uid 500); 7 May 2009 14:33:43 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 82785 invoked by uid 500); 7 May 2009 14:33:42 -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 82764 invoked by uid 99); 7 May 2009 14:33:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:33:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of gary.tully@gmail.com designates 209.85.220.168 as permitted sender) Received: from [209.85.220.168] (HELO mail-fx0-f168.google.com) (209.85.220.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 May 2009 14:33:29 +0000 Received: by fxm12 with SMTP id 12so1016627fxm.38 for ; Thu, 07 May 2009 07:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=vhdjt5XEV0gjTepxjZ/CTonJ/OEVnh8zdUS5OQOakgI=; b=S7aEb6v4n5G1hUIVSixfu2dlaft/3oHbKLkpSa6QWVscIBdPrhJE/rnh9Cb2eQsgk5 37TPJR9ayD5qpcjvgv7iCgneScdjNVYqoJbIwmWM056U7K3rmTxrNkXIT/BrLIhOiXeB SMgYISGNKVoDWI8tmBJ6vBavssgLA6Sd2JRGA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=bCOPg6sgMRCg3MBVgUqh9/kfyEtHLkjrDNhsm3wzR56fgCJqbOViFeTZYMvxPMasEE JzVjn6mmOte7yPqmKNvP7Qnl6VXSPOG+I8TxdhZJptgcpCY/bd15jKifIh9KlMFk7eXj BMszuEnZRMC8LZs+HcqgqvQcNy0VeneUpTftM= MIME-Version: 1.0 Received: by 10.102.253.3 with SMTP id a3mr1285692mui.134.1241706788787; Thu, 07 May 2009 07:33:08 -0700 (PDT) In-Reply-To: <23424301.post@talk.nabble.com> References: <23389382.post@talk.nabble.com> <23424301.post@talk.nabble.com> Date: Thu, 7 May 2009 15:33:08 +0100 Message-ID: <3a73c17c0905070733l1eecc9e4sa5e0249fb571126a@mail.gmail.com> Subject: Re: Redelivery of messages in transactional mode From: Gary Tully To: users@activemq.apache.org Content-Type: multipart/alternative; boundary=0016364166e90f97450469536414 X-Virus-Checked: Checked by ClamAV on apache.org --0016364166e90f97450469536414 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit You may want to try the camel or servicemix user lists for this one. 2009/5/7 Sanjay Jain > > Can anybody please help me out to resolve this issue? > > Thanks, > Sanjay > > > Sanjay Jain wrote: > > > > Hi All, > > > > I tried hard to get the redelivery working when route is transacted. But > > so far no luck with redelivery at all. I am using camel-1.5.0 in > > servicemix 3.2.2. > > > > This is how my camel-context.xml looks like: > > > > > xmlns="http://activemq.apache.org/camel/schema/spring"> > > > > > > > > > > > > > > > > > > > > > ref="jmsConnectionFactory"> > > > > > > > > > ref="jmsTransactionManager"/> > > > > > > > class="org.apache.activemq.camel.component.ActiveMQComponent"> > > value="vm://localhost?create=false" > > /> > > > > > > > > > > > class="org.springframework.jms.connection.JmsTransactionManager"> > > > /> > > > > > > > class="org.apache.activemq.ActiveMQConnectionFactory"> > > > value="vm://localhost?broker.persistent=false&broker.useJmx=false"/> > > > > > > > > > class="org.apache.camel.spring.spi.SpringTransactionPolicy"> > > > ref="jmsTransactionManager"/> > > > > > > class="org.apache.activemq.RedeliveryPolicy"> > > > > > > > > > class="org.springframework.transaction.support.TransactionTemplate"> > > > ref="jmsTransactionManager" /> > > > value="PROPAGATION_NOT_SUPPORTED" /> > > > > > > > class="org.springframework.transaction.support.TransactionTemplate"> > > > ref="jmsTransactionManager" /> > > > value="PROPAGATION_REQUIRES_NEW" /> > > > > > > > class="org.apache.camel.spring.spi.TransactionErrorHandlerBuilder"> > > > ref="PROPAGATION_REQUIRED"/> > > > > > > Class RouteBuilder{ > > public void throwRetryException() throws Exception{ > > throw new Exception(); > > } > > }; > > > > No matter whatever I do, I never seen camel to trigger the redelivery of > > messages. > > > > I also came across this wiki page : > > http://camel.apache.org/transactional-client.html and here it says: > > > > Configuration of Redelivery > > > > The redelivery in transacted mode is not handled by Camel but by the > > backing system (the transaction manager). In such cases you should resort > > to the backing system how to configure the redelivery. > > > > As far as I understand, the backing system in my configuration is > ActiveMQ > > TransactionManager which I set correctly. If I am wrong please someone > > correct me here and also give me explanation about backing system. > > > > Could anyone please tell me what I am missing here? > > > > I struggled a lot but never get this working. I am dying to see this > > working as soon as I can. > > > > Looking forward to see your expert comments. > > > > Thanks in advance, > > Sanjay > > > > > > > > > > > > -- > View this message in context: > http://www.nabble.com/Redelivery-of-messages-in-transactional-mode-tp23389382p23424301.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- http://blog.garytully.com Open Source SOA http://FUSESource.com --0016364166e90f97450469536414--