Added trapExceptions to declarative supervisor configuration

This commit is contained in:
jboner 2009-11-30 21:22:24 +01:00
parent 174ca6a63c
commit 741a3c2b8c
15 changed files with 50 additions and 41 deletions

View file

@ -8,7 +8,7 @@ public class Boot {
public Boot() throws Exception {
manager.configure(
new RestartStrategy(new OneForOne(), 3, 5000),
new RestartStrategy(new OneForOne(), 3, 5000, new Class[]{Exception.class}),
new Component[] {
new Component(
sample.java.SimpleService.class,