<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"> <beans default-lazy-init="false"> <bean name="quartzScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean"> <property name="triggers"> <list> <ref bean="syncUpdatedUsersCronTrigger" /> <ref bean="syncLeaversCronTrigger" /> </list> </property> <property name="configLocation" value="classpath:quartz.properties" /> </bean> <bean id="syncUpdatedUsersCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="syncUpdatedUsersJobDetail" /> <property name="cronExpression" value="${sync.updated_users_sync_cronExpression}" /> </bean> <bean id="syncLeaversCronTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean"> <property name="jobDetail" ref="syncLeaversJobDetail" /> <property name="cronExpression" value="${sync.leaver_sync_cronExpression}" /> </bean> <bean id="syncUpdatedUsersJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="synchronizeUser" /> <property name="targetMethod" value="synchronizeUpdatedUsers" /> </bean> <bean id="syncLeaversJobDetail" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"> <property name="targetObject" ref="synchronizeUser" /> <property name="targetMethod" value="synchronizeLeavers" /> </bean> <bean id="synchronizeUser" class="com.ukoom.Job" /> </beans> References: http://cse-mjmcl.cse.bris.ac.uk/blog/2007/06/20/1182370280435.html http://static.springframework.org/spring/docs/2.0.x/api/org/springframework/scheduling/quartz/MethodInvokingJobDetailFactoryBean.html http://www.springside.org.cn/docs/reference/Quartz.htm
It is important to know some key objects of Quartz. org.quartz.Trigger The base abstract class to be extended by all Triggers including org.quartz.CronTrigger. Triggers s have a name and group associated with them, which should uniquely identify them within a single Scheduler. Triggers are the 'mechanism' by which Jobs are scheduled. ...
The Java programming language provides two basic synchronization idioms: synchronized methods and synchronized statements. First, it is not possible for two invocations of synchronized methods on the same object to interleave. When one thread is executing a synchronized method ...
Classpath Being closely associated with the file system, the command-line Classpath syntax depends on the operating system. For example: * on Linux, Mac OS X, and more generally on all ...

Read password from command line There is a method “java.io.Console.readPassword(“”)” in JDK 6 to read password from command line. Unfortunately, I am working on JDK1.4...
We can use both Key and Password to encryt file. Use the Key I rewrited the DESEncryptUtil got from internet. PBE the third party utility - Jasypt is used to encrypt/decryt ...
These two days, I was working on getting timezone information from oracle using Hibernate. The version of Hibernate is 3.2.4. I found that the return value always returned a Calendar with the tomcat server's timezone when we were getting a Calendar field. My environment: a column with data type ...