【发布时间】:2012-04-26 16:55:31
【问题描述】:
使用 akka 1.3.1,我以前可以这样做:
Actor.remote.start(config.server.host, config.server.port)
Actor.remote.register("service", Actor.actorOf[ServiceHandler].start())
这将使用提供的主机/端口配置启动远程服务器,然后允许我稍后在运行时注册远程服务。有没有办法在 Akka 2.0 中获得这种行为,而无需在 akka conf 文件中预定义所有内容?
谢谢!
【问题讨论】:
-
我希望我们可以为这个问题找到一个完全有效的例子......如果有的话,那就太棒了。