[erlang-questions] How to get pid of remote registered process

tsuraan tsuraan@REDACTED
Thu May 14 16:28:35 CEST 2009


> You have several options:
> - implement a name registry yourself in Java and use it to retrieve the
> pid,
> - let the mailbox answer to a message of 'whats_your_pid_dude' (or
> whatever :-) with the right value
> - when creating the mailbox, send the pid to some process on the erlang
> side

Yeah, this is the first time I've tried using a named mailbox in
JInterface.  It seems to work pretty well, but since I need an easy
way to get the pid, I guess I'll just go with the pid registry
solution (the last one on your list) that I have been using.

I still think it's a bit funky that { name, node } message sending
works, but there's no way to get the pid of a process given its {
name, node } tuple...



More information about the erlang-questions mailing list