On Sun, May 4, 2014 at 6:23 PM, Eugene Dzhurinsky <jdeve...@gmail.com>wrote:
> On Sun, May 04, 2014 at 09:46:50AM +0200, Heiko Seeberger wrote: > > class MyActor(myParameter: String) extends Actor with FSM { ... } > > > > context.actorOf(Props(new MyActor("myArgument"))) > > As far as I understand, this will create an actor on the same host/same > JVM, > but I need it to be created in a cluster. > Got it. You still can deploy it remotely in the cluster. Just use `Cluster.state` to get all member nodes which are up, choose one and get its `address`, then use `Props.withDeploy(Deploy(scope = RemoteScope(address)))`. That's a simple approach. You could also start "manager actors" on member nodes and ask one of those to create the actors by sending the `Props`. And you can take a look into cluster sharding. Heiko > > -- > Eugene N Dzhurinsky > -- Heiko Seeberger Twitter: @hseeberger Blog: blog.heikoseeberger.name -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.