at first my application save the cron details from the browser into the databse later the scheduling should take palce by getting the details. how can we set the cron expression dynamically in the applicationcontext. When i start the application the scheduler start and run the job actually i dont want that to happen. i want the job to run after user getting the values from the browser an base up on the database values it should trigger
applicationcontext.xml
<bean id="JobA" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="com.JobCSVfile" />
<property name="jobDataAsMap">
<map>
<entry key="timeout" value="5" />
</map>
</property>
</bean>
<bean id="cronTriggerJobA" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="JobA" />
<property name="cronExpression" value="0/5 * * * * ?" />
</bean>
<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="jobDetails"> <list> <ref bean="JobA" /> </list> </property>
<property <list>
<ref bean="cronTriggerJobA" />
</list>
</property>
</bean>