Hi,
A ConnectException is really meant to catch exceptions encountered when you
send your request to a web service.
You can do the following without side-effects and only apply this to the web
service producer.
from(activemq:somequeue)
.routeId("myRoute")
.aggregate().constant(true).groupExchanges().batchTimeout(5000)
.beanRef("processAggregationBean")
.onException(ConnectException.class).maximumRedeliveries(-1).redeliverDelay(30000).end()
.to("http://some_web_service");
Cheers,
Ashwin...
-----
---------------------------------------------------------
Ashwin Karpe
Apache Camel Committer & Sr Principal Consultant
FUSESource (a Progress Software Corporation subsidiary)
http://fusesource.com http://fusesource.com
Blog: http://opensourceknowledge.blogspot.com
http://opensourceknowledge.blogspot.com
---------------------------------------------------------
--
View this message in context:
http://camel.465427.n5.nabble.com/route-scoped-onException-tp3300994p3301524.html
Sent from the Camel - Users mailing list archive at Nabble.com.