Wednesday, July 30, 2014

Install JDK from command line

jdk-8u11-windows-x64.exe /s ADDLOCAL="ToolsFeature,SourceFeature" INSTALLDIR=D:\Java8\jdk1.8.0_11

Tuesday, July 22, 2014

Quartz job run time overlapped solutioon

normally when we schedule a job,we expected that when job started when at second scheduled time,the first run before this run is not finished,two process will have some time overlapped,this could cause data in db not consistent.

the solution is make job stateful, next run will wait for first run to finished.

public xxxxxJob extends QuartzJobBean implements ApplicationContextAware,StatefulJob{
}

interface StateFulJob is the key here.