What problem are you trying to solve by using the external address?
Cheers,
√
> --
> You received this message because you are subscribed to the Google Groups "Akka User List" group.
> To post to this group, send email to akka...@googlegroups.com.
> To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
>
--
Viktor Klang
Akka Tech Lead
Typesafe - The software stack for applications that scale
Twitter: @viktorklang
Just give the client the ActorRef?
Cheers,
√
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
On Thu, Feb 16, 2012 at 5:15 PM, smr <smatamor...@gmail.com> wrote:
> Hi,
>
> Yes, I want to give the client the ActorRef returned by the actorFor
> but for that, I need the remote path of the actor.
Your code looked like this:
ActorRef actor = system.actorOf(new Props(actorclass), name);
String path = actor.path().toString();
I assume your remote client is also an actor:
remoteClient.tell("this is your new buddy", actor)
Or, if this is not the case, I think you need to provide some more code.
Cheers,
√
> For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.
while it is possible to obtain the remote address, you should not need it unless under very specific circumstances, most notably when serializing ActorRef yourself.
One thing you left out in the description of your scenario is how client and server communicate. If they just use Akka remoting, then the only thing you need is to send the ActorRef directly, no paths needed.
Regards,
Roland
Hi Roland,we really need the remote path of the actor, cause our problem is relative to serialization.What is the way to retrieve it?
Thanks!
--
You received this message because you are subscribed to the Google Groups "Akka User List" group.
To view this discussion on the web visit https://groups.google.com/d/msg/akka-user/-/dn81SqUQtBIJ.
To post to this group, send email to akka...@googlegroups.com.
To unsubscribe from this group, send email to akka-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/akka-user?hl=en.