camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Apache Camel Endpoint
Date Wed, 22 Jul 2015 05:50:06 GMT
On Wed, Jul 22, 2015 at 7:46 AM, kethireddy <s.kethireddy@f5.com> wrote:
> Hi
>
>    How to validate source endpoint. I have a scenario as follows
>
> Requirement: Consume  messages from RabbitMQ.
>
>  I tried  as
>
> from("rabbitmq://testhost:5672/xxxxxExchange?queue=xxxQueue&username=xxxx")
>                                 .to("stream:out")
>
>    in my case testhost does not exits I expected Camel should throw an error
> but it does not throwing any errors.
>

It may take some time for the network to fail resolving that host.
Have you tried waiting.

>   Same issue with File as well from("file:testsource").to("steam.out")
>

See the options autoCreate and startingDirectoryMustExist at
http://camel.apache.org/file2

> My question is how to force camel throw an error if source endpoint doesn't
> exits
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Endpoint-tp5769715.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Mime
View raw message