Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Update cronExpression in spring applicationContext.xml (http://www.go4expert.com/forums/update-cronexpression-spring-t5664/)

mvairavan 4Aug2007 12:13

Update cronExpression in spring applicationContext.xml
I am using spring 1.2.7 scheduling service. how to update cronExpression value from DB.

"<property name="cronExpression" value="0 0 7 * * ?"/>" instead of printing the value (0 0 7 ) statically i want to read it from database. how to apply. Please urgent.

<bean id="planScheduler" class="com.nss.easyplan.service.PlanScheduler">
<property name="planManager" ref="planManager"/>
<property name="adminSettingManager" ref="settingManager"/>

<bean id="jobDetail" class="org.springframework.scheduling.quartz.Metho dInvoki ngJobDetailFactoryBean">
<property name="targetObject" ref="planScheduler"/>
<property name="targetMethod" value="createPlan"/>

<bean id="cronTrigger" class="org.springframework.scheduling.quartz.CronT riggerB ean">
<property name="jobDetail" ref="jobDetail"/>
<property name="cronExpression" value="0 0 7 * * ?"/>

<bean class="org.springframework.scheduling.quartz.Sched ulerFac toryBean">
<property name="triggers">
<ref bean="cronTrigger"/>

All times are GMT +5.5. The time now is 01:58.