Subversion Repositories SmartDukaan

Rev

Rev 3975 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3975 Rev 3976
Line 30... Line 30...
30
    @Override
30
    @Override
31
    public void contextInitialized(ServletContextEvent event) {
31
    public void contextInitialized(ServletContextEvent event) {
32
        log.info("Inside contextInitialized");
32
        log.info("Inside contextInitialized");
33
        scheduler = Executors.newSingleThreadScheduledExecutor();
33
        scheduler = Executors.newSingleThreadScheduledExecutor();
34
 
34
 
35
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:MM:ss");
35
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMdd HH:mm:ss");
36
        SimpleDateFormat sdfYYYYMMDD = new SimpleDateFormat("yyyyMMdd");
36
        SimpleDateFormat sdfYYYYMMDD = new SimpleDateFormat("yyyyMMdd");
37
        long initialDelay = 0;
37
        long initialDelay = 0;
38
        long period = 12 * 60 * 60 * 1000; //12 hours in milliseconds
38
        long period = 12 * 60 * 60 * 1000; //12 hours in milliseconds
39
 
39
 
40
        try {
40
        try {