camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen" ...@silverbullet.dk>
Subject RE: camel 1.4 redelivery issue
Date Thu, 14 Aug 2008 06:11:30 GMT
Hi

Me again before leaving for work.

Why cant you just create a RedeliveryPolicy object using plain standard java and set it on
the exception type?

RedeliveryPolicy policy = new ...
policy.setXXX
policy.setXXX
policy.setXXX


exception(MyBusinessException).setRedeliveryPolicu(policy).to(...);



Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk
-----Original Message-----
From: Claus Ibsen [mailto:ci@silverbullet.dk] 
Sent: 14. august 2008 07:46
To: camel-user@activemq.apache.org
Subject: RE: camel 1.4 redelivery issue

Hi

All the "magic" is done in the sleep method of org.apache.camel.procssor.RedeliveryPolicy.

You could create your own class that extends this one and handle the logic in the sleep method
to avoid the 60 sec limit.

Then you could set your class as the redelivery policy on the exception type.




Med venlig hilsen
 
Claus Ibsen
......................................
Silverbullet
Skovsgårdsvænget 21
8362 Hørning
Tlf. +45 2962 7576
Web: www.silverbullet.dk

-----Original Message-----
From: pratibhaG [mailto:pratibha.ghogale@in2m.com] 
Sent: 14. august 2008 06:38
To: camel-user@activemq.apache.org
Subject: RE: camel 1.4 redelivery issue


Yes exception() overrides the DLC. I can not set all the options on the DLC
rather than on the exception type as I have to handle the exceptions
depending on the type.

Is there any other alternative?

Pratibha
-- 
View this message in context: http://www.nabble.com/camel-1.4-redelivery-issue-tp18960138s22882p18975591.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Mime
View raw message