Workaround temporary issue by starting supervised actors explicitly.

This commit is contained in:
Martin Krasser 2010-05-26 18:39:52 +02:00
parent 49c220288f
commit fa66aae69d

View file

@ -28,8 +28,8 @@ class Boot {
val factory = SupervisorFactory(
SupervisorConfig(
RestartStrategy(OneForOne, 3, 100, List(classOf[Exception])),
Supervise(actorOf[Consumer1], LifeCycle(Permanent)) ::
Supervise(actorOf[Consumer2], LifeCycle(Permanent)) :: Nil))
Supervise(actorOf[Consumer1].start, LifeCycle(Permanent)) ::
Supervise(actorOf[Consumer2].start, LifeCycle(Permanent)) :: Nil))
factory.newInstance.start
// Routing example