camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pratibhaG <>
Subject Reusing redelivery policy with camel 1.4
Date Thu, 20 May 2010 12:24:19 GMT


I am using camel 1.4 in servicemix 3.2.2 

I have created many message flows where on a connection error I need to do
the redelivery of the message.

I do it this way:

		.intercept(new SocketErrorProcessor());


I have configured this at many places I want this redelivery policy to be at
one place only. How can I do that? Please help.

I tried this:
		.bean(new MyBean())
		.intercept(new SocketErrorProcessor());

and setting the properties in MyBean() constructor . But it didn't work. The
message was not redelivered at all and even the interceptor was not called.

I also tried this :
errorHandler(new MyBean);

		.intercept(new SocketErrorProcessor());

thsi time the interceptor was called but redelivery never happened.
Please help me to implement it.

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message