Hi

On Tue, Dec 16, 2008 at 2:43 PM, Fush <rikard.erik...@gmail.com> wrote:
>
> It seems that the XML is not valid if the <from> tag is not immediately after
> the <route> tag. So I'm not allowed to move the <onException> tags to the
> top. I'll create a Jira issue as you suggested.
In the Java DSL you can do this, so I was hoping it would help. Yeap
create the JIRA and let me take a look.

Maybe as a work around you can have some kind of dummy route before
the choice, i.e. shoot in a processor, or another bean that does not
fail. Just to verify that if the choice .. otherwise combo is not
directly after the from.

from(xxx).to("bean:diummy").choice ....







>
>
>
> Claus Ibsen-2 wrote:
>>
>> Hi
>>
>> No it's not supposed to work like that.
>> Could you move the onException before the from clause?
>>
>> So its like this
>>>                <route>
>>>                        <onException>
>> ...
>>>                        <from ref="myMainQueue" />
>>
>> And try it. It could be a difference if the onException is defined
>> outside the from.
>>
>> I think I need to take a look to see what happens when you have the
>> choice .. otherwise. There could be a flaw there.
>>
>> Could you create a ticket in JIRA with this issue?
>> http://activemq.apache.org/camel/support.html
>> there is a link from the support page
>>
>
> --
> View this message in context: 
> http://www.nabble.com/Will-onException-handle-exceptions-thrown-from-%27when%27-clause--tp21033017s22882p21033324.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 

/Claus Ibsen
Apache Camel Committer
Blog: http://davsclaus.blogspot.com/

Reply via email to