You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by James Strachan <ja...@gmail.com> on 2008/05/01 10:17:35 UTC

Re: Camel Routing from Endpoint

2008/4/30 chintaka <ch...@gmail.com>:
>
>  Hello ,
>  I need to create a route that listens to an existing end point in
>  ServiceMix.
>  So, I deployed a route like below ,
>
>   from("http://localhost:8192/example/").
>                                 to("log:org.apache.servicemix.samples.camel.ExampleCamelRoute");
>
>  My assumption was that camel will route to the log file when something is
>  submitted to the http endpoint , but when route was deployed it was
>  continuously polling the end point even when there is no submission.
>
>  Is there a way make this route so that it will call log only when data
>  submitted to the endpoint ?

So the http endpoint is a http client which will by default poll the
HTTP endpoint.

If you want to consume from a JBI endpoint then use the Camel jbi
endpoint; which will then be invoked when the JBI endpoint has a
message sent to it.
http://activemq.apache.org/camel/jbi.html

-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Re: Camel Routing from Endpoint

Posted by chintaka <ch...@gmail.com>.
I will try that.

Thanks , 
Chintaka 


James.Strachan wrote:
> 
> 2008/4/30 chintaka <ch...@gmail.com>:
>>
>>  Hello ,
>>  I need to create a route that listens to an existing end point in
>>  ServiceMix.
>>  So, I deployed a route like below ,
>>
>>   from("http://localhost:8192/example/").
>>                                
>> to("log:org.apache.servicemix.samples.camel.ExampleCamelRoute");
>>
>>  My assumption was that camel will route to the log file when something
>> is
>>  submitted to the http endpoint , but when route was deployed it was
>>  continuously polling the end point even when there is no submission.
>>
>>  Is there a way make this route so that it will call log only when data
>>  submitted to the endpoint ?
> 
> So the http endpoint is a http client which will by default poll the
> HTTP endpoint.
> 
> If you want to consume from a JBI endpoint then use the Camel jbi
> endpoint; which will then be invoked when the JBI endpoint has a
> message sent to it.
> http://activemq.apache.org/camel/jbi.html
> 
> -- 
> James
> -------
> http://macstrac.blogspot.com/
> 
> Open Source Integration
> http://open.iona.com
> 
> 

-- 
View this message in context: http://www.nabble.com/Camel-Routing-from-Endpoint-tp16989074s22882p17022274.html
Sent from the Camel - Users mailing list archive at Nabble.com.