I want to set the Cron expression in GMT timezone.
I have gone through the link:
http://forum.springframework.org/sho...uartz+timezone
I have done this setting, but getting the error:
The content of element type "constructor-arg" must match
"(description?,(bean|ref|idref|value|null|list|set |map|props)?)".
Code:
<bean id="timeZone" class="java.util.TimeZone" factory-method="getTimeZone">
<constructor-arg>America/Los_Angeles</constructor-arg>
</bean>
<bean id="MyTRIGGER" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="MyJOB" />
<!--<property name="timeZone">
//how to inject that bean into the timeZone property.
<value>America/Los_Angeles</value>
</property>
-->
<property name="cronExpression"><value>${MyExpressionFromProperty}</value></property>
</bean>
Do I need to do any extra setting to let know the cronExpression that it needs to run in that GMT in our 'Spring Job' which extends 'QuartzJobBean'.
Regards,
I.M.