Hello all,

There seems to have been some change in the way onexception behaves from 2.5
to 2.6 an onwards.  I believe the behaviour in 2.5 was correct.  I have
onexception set up as follows (in spring):

                
                        
                        java.net.SocketTimeoutException
                        java.net.SocketException

                        

                        
                        
                                true
                        
                        
                        
                

I am basically attempting to call a web service.  If the web service is not
available, I retry several times.  If the web service is still not reachable
I give up and do some logging in handleFailedMessages.   If a retry is
successful, however, the handleFailedMessages should not be called and the
route should continue from where the exception originally occurred.  This is
how it worked in 2.5. This does not happen however in 2.6.  In 2.6 (and 2.7)
when retrying fails, handleFailedMessages is called and the route does not
continue.  The book Camel in Action states that 2.5 is the correct
behaviour.

Was a bug introduced in 2.6, or am I missing something?

Thanks for all your help.

--
View this message in context: 
http://camel.465427.n5.nabble.com/onexception-behavior-change-from-2-5-to-2-6-tp4290040p4290040.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to