Subversion Repositories SmartDukaan

Rev

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

Rev 4718 Rev 4728
Line 67... Line 67...
67
			logger.error("Unable to get port number from the Config server because of:", ex);
67
			logger.error("Unable to get port number from the Config server because of:", ex);
68
		}
68
		}
69
	}
69
	}
70
 
70
 
71
    public void destroy() {
71
    public void destroy() {
72
        System.out.println("Payment Server stopped.");
72
        logger.info("Payment Server stopped.");
73
        // TODO Auto-generated method stub
73
        // TODO Auto-generated method stub
74
        
74
        
75
    }
75
    }
76
 
76
 
77
    public void init(DaemonContext dc) throws Exception {
77
    public void init(DaemonContext dc) throws Exception {
78
        System.out.println("Initializing Payment Server...");
78
        logger.info("Initializing Payment Server...");
79
        // TODO Auto-generated method stub
79
        // TODO Auto-generated method stub
80
        
80
        
81
    }
81
    }
82
 
82
 
83
    public void start() throws Exception {
83
    public void start() throws Exception {
84
        System.out.println("Starting Payment Server");
84
        logger.info("Starting Payment Server");
85
        initialize();
85
        initialize();
86
        // TODO Auto-generated method stub
86
        // TODO Auto-generated method stub
87
        
87
        
88
    }
88
    }
89
 
89
 
90
    public void stop() throws Exception {
90
    public void stop() throws Exception {
91
        System.out.println("Stopping Payment Server...");
91
        logger.info("Stopping Payment Server...");
92
        server.stop();
92
        server.stop();
93
        System.exit(0);
93
        System.exit(0);
94
        // TODO Auto-generated method stub
94
        // TODO Auto-generated method stub
95
        
95
        
96
    }
96
    }