UPDATE: It's /system/sharding/NAME now четверг, 6 марта 2014 г., 21:03:40 UTC+4 пользователь Patrik Nordwall написал: > > Hi, > > > On Thu, Mar 6, 2014 at 12:09 PM, Xingrun CHEN <[email protected] > <javascript:>> wrote: > >> To use cluster client, I must register service on server nodes >> as receptionist . >> >> But in the sharding cluster, shard region actor will not register it self >> as a receptionist. So in order to access sharding entities through cluster >> client, I need to register some 'proxy' actors as receptionist in the >> cluster and forward msg to region actor. >> > > You can register the shard region actor as receptionist. > > ClusterSharding(system).start("NAME", ...) > ClusterReceptionistExtension(system).registerService( > ClusterSharding(system).shardRegion("NAME")) > > The path will be "/user/sharding/NAME" > > /Patrik > > >> >> is there better way? >> >> -- >> >>>>>>>>>> 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 [email protected] <javascript:>. >> To post to this group, send email to [email protected] >> <javascript:>. >> Visit this group at http://groups.google.com/group/akka-user. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > > Patrik Nordwall > Typesafe <http://typesafe.com/> - Reactive apps on the JVM > Twitter: @patriknw > >
-- >>>>>>>>>> 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.
