I am using AKKA 2.1 with Scala 2.10.
I need multiple machines to start actor systems and instantiate some number of actors. After this, each system needs to access all other systems and collect references to their actors using "actorFor(...)".
However, I need a way for an actor system to wait on the other systems to boot before it connects, otherwise I get errors.
If actor system A connects to B while B is offline, my program fails. However, if A connects to B and obtains a remote actor reference before it exists on B, the program continues fine once B actually instantiates the actor.
In a nutshell, I need somehow to await the creation event at B before I try connecting to it. Is there a good way to do this in Scala+AKKA?