Hi

I created a ticket to track this as you are not allowed to configured
it that far down the route
https://issues.apache.org/activemq/browse/CAMEL-1923



On Tue, Aug 18, 2009 at 6:19 PM, Bob Yetman<[email protected]> wrote:
>
> I've been expermenting with camel 1.6.1, and come across a problem/bug with
> OnException.
>
> With the following route (greatly simplified for testing) everything works
> as expected and a file put into input shows up into output, and nothing
> shows up in the exception directory:
>
> <route>
>   <from uri="file:///c:/temp/input"></from>
>   <onException>
>       <exception>java.lang.Exception</exception>
>       <handled><constant>true</constant></handled>
>       <to uri="file:///c:/temp/exception">
>   </onException>
>   <to uri="file:///c:/temp/output"></to>
> </route>
>
> However, when I have OnExceptions inside of multicast, things don't quite
> work as expected, the input
> file ends up in output & output2 as expected, but it also ends up in the
> exception and exception2 directorys, which shouldn't happen, since no
> exception is thrown in the route :
>
> <route>
>   <from uri="file:///c:/temp/input"></from>
>   <multicast>
>     <pipeline>
>       <onException>
>           <exception>java.lang.Exception</exception>
>           <handled><constant>true</constant></handled>
>           <to uri="file:///c:/temp/exception">
>      </onException>
>      <to uri="file:///c:/temp/output"></to>
>      </pipeline>
>      <pipeline>
>       <onException>
>           <exception>java.lang.Exception</exception>
>           <handled><constant>true</constant></handled>
>           <to uri="file:///c:/temp/exception2">
>      </onException>
>      <to uri="file:///c:/temp/output2"></to>
>      </pipeline>
>   </multicast>
> </route>
>
> Three possibilites come to mind:
>
> 1.  I've got something wrong in the route
> 2.  It's a bug in multicasting/onexception
> 3.  I'm just not understanding something correctly.
>
> Any help would be appreciated.
>
>
>
> --
> View this message in context: 
> http://www.nabble.com/Multicast---OnException----Bug--%28camel-1.6.1%29-tp25028431p25028431.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to