You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by snehal_jagtap <sn...@omniscient.co.in> on 2015/08/31 11:43:35 UTC
Camel quartz2 trigger.repeatInterval not working
Hello,
I have been using 'quartz2' for polling and try to poll message after every
40 seconds.
however files are polled every second.
If i use 'quartz' it is working fine.
Please help me on this and sorry if i missed any etiquette!
Snippet -
<camel:endpoint id="statementInput"
uri="quartz2://abcgroup/xyzTimer?trigger.repeatInterval=40000&trigger.repeatCount=1&stateful=true&job.name=pqrReader"
/>
<camel:routeContext id="routeContext1">
<camel:route>
<camel:from ref="statementInput" />
<camel:process ref="abcProcessor" />
<camel:to ref="extractor" />
</camel:route>
</camel:routeContext>
<bean id="quartz2"
class="org.apache.camel.component.quartz2.QuartzComponent">
<property name="startDelayedSeconds" value="30" />
</bean>
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-quartz2-trigger-repeatInterval-not-working-tp5771095.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel quartz2 trigger.repeatInterval not working
Posted by Claus Ibsen <cl...@gmail.com>.
You have repeat count to 1 which means it should only trigger 1 time.
Also try use latest release in case it works there
On Mon, Aug 31, 2015 at 11:43 AM, snehal_jagtap
<sn...@omniscient.co.in> wrote:
> Hello,
> I have been using 'quartz2' for polling and try to poll message after every
> 40 seconds.
>
> however files are polled every second.
> If i use 'quartz' it is working fine.
>
> Please help me on this and sorry if i missed any etiquette!
>
> Snippet -
>
>
> <camel:endpoint id="statementInput"
> uri="quartz2://abcgroup/xyzTimer?trigger.repeatInterval=40000&trigger.repeatCount=1&stateful=true&job.name=pqrReader"
> />
>
> <camel:routeContext id="routeContext1">
>
> <camel:route>
> <camel:from ref="statementInput" />
> <camel:process ref="abcProcessor" />
> <camel:to ref="extractor" />
> </camel:route>
>
> </camel:routeContext>
>
> <bean id="quartz2"
> class="org.apache.camel.component.quartz2.QuartzComponent">
> <property name="startDelayedSeconds" value="30" />
> </bean>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-quartz2-trigger-repeatInterval-not-working-tp5771095.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