Hi Thanks for raising this issue. It looks like a bug in the multicast logic when having exceptions handled by onException as well. If you dont have the onException it should work.
A workaround is to fix the UseLatestAggregationStrategy to ensure the exception is propagated as well. I have raised a ticket https://issues.apache.org/activemq/browse/CAMEL-3352 On Thu, Nov 18, 2010 at 6:15 AM, Mark Borner <[email protected]>wrote: > > Hello all: > > Can someone help me with the behaviour of multicast() when exceptions are > thrown? I've attached a unit test & Spring context to outline my question. > > What I'm expecting is that all unit tests pass. What I'm experiencing is > that unit test "end1FailureTest" doesn't pass. And I don't understand why. > Why would the behaviour be different if the first endpoint of a multicast() > throws an exception versus the second? > > I've executed the unit test under Camel 2.4 and 2.5 with the same results. > > Any help is appreciated! > Mark > > Mark Borner > Java Developer - ZStream Xpress > > > > > > ---- > This email is intended for the named recipient only. It may contain > information which is confidential, commercially sensitive, or > copyright. If you are not the intended recipient you must not > reproduce or distribute any part of the email, disclose its contents, > or take any action in reliance. If you have received this email in > error, please contact the sender and delete the message. It is your > responsibility to scan this email and any attachments for viruses and > other defects. To the extent permitted by law, Zurich and its > associates will not be liable for any loss or damage arising in any > way from this communication including any file attachments. We may > monitor email you send to us, either as a reply to this email or any > email you send to us, to confirm our systems are protected and for > compliance with company policies. Although we take reasonable > precautions to protect the confidentiality of our email systems, we > do not warrant the confidentiality or security of email or > attachments we receive. > > -- Claus Ibsen ----------------- FuseSource Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.blogspot.com/ Author of Camel in Action: http://www.manning.com/ibsen/
