--- android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java 2010/10/04 17:38:13 1162 +++ android/TrainInfoService/src/dk/thoerup/traininfoservice/CircuitBreakerListener.java 2011/04/19 12:44:01 1304 @@ -7,6 +7,7 @@ import javax.servlet.annotation.WebListener; import dk.thoerup.circuitbreaker.AccountingCircuitBreaker; +import dk.thoerup.circuitbreaker.LoggingCircuitBreaker; import dk.thoerup.circuitbreaker.CircuitBreakerManager; import dk.thoerup.circuitbreaker.jmx.JMXWrapper; import dk.thoerup.circuitbreaker.notification.*; @@ -39,7 +40,7 @@ notif.addNotifier( new MailNotifier("traininfo@t-hoerup.dk", "torben@t-hoerup.dk", "192.168.10.5") ); - AccountingCircuitBreaker banedk = new AccountingCircuitBreaker("banedk", threshold, timeout); + LoggingCircuitBreaker banedk = new LoggingCircuitBreaker("banedk", threshold, timeout); banedk.setNotifier(notif); mgr.addCircuitBreaker( banedk ); @@ -48,7 +49,7 @@ metro.setNotifier(notif); mgr.addCircuitBreaker( metro ); - JMXWrapper.registerAllCircuitBreakers(); + //JMXWrapper.registerAllCircuitBreakers(); } /** @@ -58,7 +59,7 @@ logger.warning("Context Destroyed"); CircuitBreakerManager.getManager().shutdown(); - JMXWrapper.unregisterAllCircuitBreakers(); + //JMXWrapper.unregisterAllCircuitBreakers(); } }