Reputation: 1441
Using akka 1.3.1, I was able to previously do something like this:
Actor.remote.start(config.server.host, config.server.port)
Actor.remote.register("service", Actor.actorOf[ServiceHandler].start())
Which would start a remote server using the provided host/port configuration, and then allow me to register remote services later on during runtime. Is there any way to get this behavior in Akka 2.0 without having to predefine everything in the akka conf files?
Thanks!
Upvotes: 3
Views: 1335
Reputation: 26579
Your actors are reachable automatically by path in the remoting in 2.0. Read documentation on remoting here: http://doc.akka.io/docs/akka/2.0.1/scala/remoting.html
Upvotes: 2