You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sathiyaraja <sa...@hotmail.com> on 2015/06/14 18:51:53 UTC

CronScheduled Route Policy is not working in cluster

Hi .,

Can anyone help with cronscheduledouterpolicy in fuse 6.1 cluster.

My camel file file looks like below.,

<bean id="myStartPolicy"
class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
  <property name="routeStartTime" value="......" />
  <property name="routeStopTime" value="......" />
</bean>

<camelContext xmlns="http://camel.apache.org/schema/spring">
    
<route id="testRoute" routePolicyRef="startPolicy" autoStartup="false">
        <from uri="file://server/filepath\...."/>
        <to uri="mock:success"/>
    </route>
</camelContext>

The above is working in non clustured environment, but not works in clustred
environment.

Thanks in adavance..



--
View this message in context: http://camel.465427.n5.nabble.com/CronScheduled-Route-Policy-is-not-working-in-cluster-tp5768214.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: CronScheduled Route Policy is not working in cluster

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

What do you mean by non working?

Do you mean that the file consume should only be running on one active
node, or what is your "not working problem" ?

On Sun, Jun 14, 2015 at 6:51 PM, sathiyaraja
<sa...@hotmail.com> wrote:
> Hi .,
>
> Can anyone help with cronscheduledouterpolicy in fuse 6.1 cluster.
>
> My camel file file looks like below.,
>
> <bean id="myStartPolicy"
> class="org.apache.camel.routepolicy.quartz2.CronScheduledRoutePolicy">
>   <property name="routeStartTime" value="......" />
>   <property name="routeStopTime" value="......" />
> </bean>
>
> <camelContext xmlns="http://camel.apache.org/schema/spring">
>
> <route id="testRoute" routePolicyRef="startPolicy" autoStartup="false">
>         <from uri="file://server/filepath\...."/>
>         <to uri="mock:success"/>
>     </route>
> </camelContext>
>
> The above is working in non clustured environment, but not works in clustred
> environment.
>
> Thanks in adavance..
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/CronScheduled-Route-Policy-is-not-working-in-cluster-tp5768214.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/