    public void contextInitialized(ServletContextEvent event) {
        HarvesterServiceLocal harvesterService = null;
        HarvestingDataverseServiceLocal harvestingDataverseService = null;
        try {
            harvesterService=(HarvesterServiceLocal)new InitialContext().lookup("java:comp/env/harvesterService");
            harvestingDataverseService=(HarvestingDataverseServiceLocal)new InitialContext().lookup("java:comp/env/harvestingDataverseService");
        } catch(Exception e) {
            e.printStackTrace();
        }
        try {
            harvestingDataverseService.resetHarvestingStatus();         
            harvesterService.createScheduledHarvestTimers();
        } catch (Exception e) {
            e.printStackTrace();
        }
        VDCNetworkServiceLocal vdcNetworkService=null;
        try {
            System.out.println("VDContextListener, scheduling export now....");
            vdcNetworkService = (VDCNetworkServiceLocal)new InitialContext().lookup("java:comp/env/vdcNetworkService");
            vdcNetworkService.createExportTimer();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }

    public void contextInitialized(ServletContextEvent event) {
        HarvesterServiceLocal harvesterService = null;
        HarvestingDataverseServiceLocal harvestingDataverseService = null;
        try {
            harvesterService=(HarvesterServiceLocal)new InitialContext().lookup("java:comp/env/harvesterService");
            harvestingDataverseService=(HarvestingDataverseServiceLocal)new InitialContext().lookup("java:comp/env/harvestingDataverseService");
        } catch(Exception e) {
            e.printStackTrace();
        }
        try {
            harvestingDataverseService.resetHarvestingStatus();         
            harvesterService.createScheduledHarvestTimers();
        } catch (Exception e) {
            e.printStackTrace();
        }
        VDCNetworkServiceLocal vdcNetworkService=null;
        try {
            System.out.println("VDContextListener, scheduling export now....");
            vdcNetworkService = (VDCNetworkServiceLocal)new InitialContext().lookup("java:comp/env/vdcNetworkService");
            vdcNetworkService.updateExportTimer();
        } catch(Exception e) {
            e.printStackTrace();
        }
    }
