Go4Expert (http://www.go4expert.com/)
-   JSP (http://www.go4expert.com/forums/jsp/)
-   -   Update cronExpression from DB (http://www.go4expert.com/forums/update-cronexpression-db-t5607/)

mvairavan 2Aug2007 08:14

Update cronExpression from DB
In the below coding

  "<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.MethodInvokingJobDetailFactoryBean">
        <property name="targetObject" ref="planScheduler"/>
        <property name="targetMethod" value="createPlan"/>

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

shabbir 2Aug2007 08:29

Re: Update cronExpression from DB

Originally Posted by mvairavan
In the below coding

You probably missed to complete the complete query.

Also moved from Java to JSP forum for better responses.

All times are GMT +5.5. The time now is 22:43.