You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by srikanthsettivari <sr...@gmail.com> on 2013/05/21 06:35:57 UTC

Transactions in camel

Hi my route is like this

  from("activemq:queue:partners")
                    .transacted()
                    
                  
                  .process(new Processor() {				
					public void process(Exchange exchange) throws Exception {
						// TODO Auto-generated method stub
						String recipients =
"activemq:queue:output1,activemq:queue:output2,activemq:queue:output3,pppppp";
						exchange.getIn().setHeader("recipients", recipients);
					
						
					}
				})
			
				.recipientList(header("recipients"));


--If transaction fails it will going to the dead letter queue, insted of
going the dead letter queue, it should be available in partners queue.

How can i configure my route




--
View this message in context: http://camel.465427.n5.nabble.com/Transactions-in-camel-tp5732863.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Transactions in camel

Posted by Christian Posta <ch...@gmail.com>.
You should consider the redeliveryPlugin on the broker side that should
help you with this:

See bottom of this:

http://activemq.apache.org/message-redelivery-and-dlq-handling.html


On Mon, May 20, 2013 at 9:35 PM, srikanthsettivari <
srikanth.settivari@gmail.com> wrote:

> Hi my route is like this
>
>   from("activemq:queue:partners")
>                     .transacted()
>
>
>                   .process(new Processor() {
>                                         public void process(Exchange
> exchange) throws Exception {
>                                                 // TODO Auto-generated
> method stub
>                                                 String recipients =
>
> "activemq:queue:output1,activemq:queue:output2,activemq:queue:output3,pppppp";
>
> exchange.getIn().setHeader("recipients", recipients);
>
>
>                                         }
>                                 })
>
>                                 .recipientList(header("recipients"));
>
>
> --If transaction fails it will going to the dead letter queue, insted of
> going the dead letter queue, it should be available in partners queue.
>
> How can i configure my route
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Transactions-in-camel-tp5732863.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta