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: ScheduledPollingConsumer properties
Date Wed, 13 Jul 2016 12:43:17 GMT
What version of Camel do you use?

I think we had a bug in an older Camel version, so if possible try
with latest version.

On Wed, Jul 13, 2016 at 1:13 PM, Colin Hartley
<colin.hartley@datagenicgroup.com> wrote:
> It appears that support for a named scheduled polling consumer is there, but
> you have to have at least one scheduler.xxx property set before it utilises
> it. e.g.
>
> I have this configured:
> <bean id="nps-scheduler"
> class="org.apache.camel.pollconsumer.quartz2.QuartzScheduledPollConsumerScheduler">
>     <property name="cron" value="0 * * * * ?"/>
> </bean>
>
> In my route, I reference it like this, but it doesn't use it:
> <from uri="ftp://ftp.somewhere.com/path?scheduler=nps-scheduler" />
>
> If I add a scheduler property, it then uses it, e.g.
> <from
> uri="ftp://ftp.somewhere.com/path?scheduler=nps-scheduler&amp;scheduler.triggerId=?"
> />
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/ScheduledPollingConsumer-properties-tp5785071.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



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

Mime
View raw message