You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by kethireddy <s....@f5.com> on 2015/07/22 07:46:02 UTC

Apache Camel Endpoint

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. 

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

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.

Re: Apache Camel Endpoint

Posted by kethireddy <s....@f5.com>.
Can you please explain little more details. How to say camel throw an
exception if consumer host url is not valid.



--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Endpoint-tp5769715p5769774.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apache Camel Endpoint

Posted by kethireddy <s....@f5.com>.
Can you please explain little more details. How to say camel throw an
exception if consumer host url is not valid.



--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Endpoint-tp5769715p5769775.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apache Camel Endpoint

Posted by Claus Ibsen <cl...@gmail.com>.
That is component specific how its implemented in camel-rabbitmq and
also the rabbitmq client it uses. How it deals with network connection
issues.

On Wed, Jul 22, 2015 at 7:39 PM, kethireddy <s....@f5.com> wrote:
> Thanks Claus for your response
>
>  what about RabbitMQ url. specific to consumer endpoint.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Endpoint-tp5769715p5769762.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

Re: Apache Camel Endpoint

Posted by kethireddy <s....@f5.com>.
Thanks Claus for your response

 what about RabbitMQ url. specific to consumer endpoint.





--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-Endpoint-tp5769715p5769762.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Apache Camel Endpoint

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jul 22, 2015 at 7:46 AM, kethireddy <s....@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