Oh and the same option should be added to Routing Slip EIP as well.

On Tue, May 11, 2010 at 11:06 AM, Claus Ibsen <[email protected]> wrote:
> On Tue, May 11, 2010 at 11:03 AM, Eric Bouer <[email protected]> wrote:
>>
>> Hi.
>> You're right about that, I added errorhandler that just suppressed the
>> warrning.
>> But throwing an exception (filling all the stack trace) is a CPU intensive
>> task, rather than just skipping and moving on to the next recipient.
>> Would it be appropriate to open a JIRA for that?
>
> Yeah fell free to create a JIRA ticket with a new option to
> ignoreInvalidEndpoints=true
> And patch + unit test is of course always welcome :)
>
>
>> Thanks.
>>
>>
>>
>> willem.jiang wrote:
>>>
>>> How about the ErrorHandler[1]? you can use OnException[2] to check this
>>> kind of NoSuchEndpointException, and skip the route part.
>>>
>>> [1]http://camel.apache.org/error-handler.html
>>> [2]http://camel.apache.org/exception-clause.html
>>>
>>> Willem
>>> Eric Bouer wrote:
>>>> Hello.
>>>> I have a situation where I need to use dynamic router that should route
>>>> the
>>>> messages to endpoints that may or may be not exist. The problem is that
>>>> camel will throw a NoSuchEndpointException since it's trying to resolve
>>>> that
>>>> destination name. I would like it just to skip that endpoint and move on
>>>> to
>>>> the next endpoint. I'll demonstrate My case.
>>>>
>>>> My route looks like this:
>>>> from("direct:in").recipientList(header("mailboxes"), ":");
>>>> A NoSuchEndpointException is raised when I get a header that contains a
>>>> mailbox name that does not exists.
>>>> Looking at http://camel.apache.org/recipient-list.html it seems that it's
>>>> possible to define a method call but is there a more elegant way I can
>>>> tell
>>>> camel to skip that destination if it does not exits?
>>>
>>>
>>>
>>
>> --
>> View this message in context: 
>> http://old.nabble.com/Recipient-List-with-optional-destinations.-tp28444254p28521662.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Author of Camel in Action: http://www.manning.com/ibsen/
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Reply via email to