- private void keepServerAlive() {
- System.out.println("Keeping server alive!");
- try {
- synchronized (this) {
- this.wait();
- }
- } catch (Exception ex) {
- System.out.println("Unexpected: " + ex.toString());
+ private void keepServerAlive() throws InterruptedException {
+ logger.info("Keeping server alive!");
+ synchronized (this) {
+ this.wait();