You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by cannykanna <ca...@gmail.com> on 2013/07/16 11:05:49 UTC
Which Component of camel is used for subscriptions or polling?
I am working on camel 2.11.0. I was able to do routing using cxf component
and perform CRUD operations in my endpoint application. Now how do I do
polling or which component is used for this in camel.
Subscription or polling: In concurrent intervals of time, whatever updates
or changes happen in my endpoint application, we need to retrieve this
information. This is called polling or subscription.
Thanks
Kannaiah
--
View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Which Component of camel is used for subscriptions or polling?
Posted by Christoph Emmersberger <ce...@googlemail.com>.
Hi Kannaiah,
sorry for the late reply, ... are you still having any issues?
One of the good examples getting started can be found within the TestCases where a File is being polled. However, you should be able to adjust the example for triggering your CXF client.
PollingConsumer consumer = context.getEndpoint(${YOUR_CONSUMER_ROUTE}).createPollingConsumer();
consumer.start();
Exchange exchange = consumer.receive(5000);
Hope this might help, ...
- Christoph
On Jul 23, 2013, at 11:41 AM, cannykanna wrote:
> Hi Christopher,
> The Document link you sent was very helpful.
> Thank you so much :)
> Does the Camel has any component that supports polling other than EIPs?
> Do you have any example where polling is executed?
>
> Regards
> Kannaiah
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5736100.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Which Component of camel is used for subscriptions or polling?
Posted by cannykanna <ca...@gmail.com>.
Hi Christopher,
The Document link you sent was very helpful.
Thank you so much :)
Does the Camel has any component that supports polling other than EIPs?
Do you have any example where polling is executed?
Regards
Kannaiah
--
View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5736100.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Which Component of camel is used for subscriptions or polling?
Posted by cannykanna <ca...@gmail.com>.
Thank you Christopher. Will look into the doc. If there are any requires, i
will let U know..!!
Regards,
Kannaiah
--
View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709p5735763.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Which Component of camel is used for subscriptions or polling?
Posted by Christoph Emmersberger <ce...@googlemail.com>.
Hi Kannaiah
I assume that you want to poll based upon different timer events.
Have a look at the documentation of a PollingConsumer: http://camel.apache.org/polling-consumer.html
You probably would like to end up with something similar like:
from("timer://foo?period=5000").bean(cool, "someBusinessLogic");
- Christoph
On Jul 16, 2013, at 11:05 AM, cannykanna wrote:
> I am working on camel 2.11.0. I was able to do routing using cxf component
> and perform CRUD operations in my endpoint application. Now how do I do
> polling or which component is used for this in camel.
> Subscription or polling: In concurrent intervals of time, whatever updates
> or changes happen in my endpoint application, we need to retrieve this
> information. This is called polling or subscription.
>
> Thanks
> Kannaiah
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Which-Component-of-camel-is-used-for-subscriptions-or-polling-tp5735709.html
> Sent from the Camel - Users mailing list archive at Nabble.com.