Set Timezone on CronScheduledRoutePolicy in JBoss Fuse 6.1
Issue
We have a route like this:
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
xsi:schemaLocation="
http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0 http://aries.apache.org/schemas/blueprint-cm/blueprint-cm-1.1.0.xsd
http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0 http://aries.apache.org/schemas/blueprint-ext/blueprint-ext.xsd
http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd
">
<bean id="cronPolicy" class="org.apache.camel.routepolicy.quartz.CronScheduledRoutePolicy">
<property name="routeStartTime" value="0 * * * * ?"/>
<property name="routeStopTime" value="30 * * * * ?"/>
</bean>
<camelContext xmlns="http://camel.apache.org/schema/blueprint" id="scheduledtransfer">
<route id="scheduledtransfer-source-to-destination" routePolicyRef="cronPolicy" autoStartup="false">
<from uri="file:///source/?noop=true&delay=5000&exclude=.*~$"/>
<log loggingLevel="INFO" message="Sending ${file:name} ..."/>
<to uri="file:///destination/"/>
<log loggingLevel="INFO" message="Sending ${file:name} ... DONE"/>
</route>
</camelContext>
</blueprint>
But actually, we want to copy files once a week "every Wednesday at 7am UTC". Is it possible to specify the time zone for the CronScheduledRoutePolicy?
Environment
- Fuse ESB 7.1
- JBoss Fuse 6.0
- JBoss Fuse 6.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.