<br><div class="gmail_quote">On Tue, Dec 20, 2011 at 9:27 AM, mabrek <span dir="ltr"><<a href="mailto:mabrek@gmail.com">mabrek@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello.<br>
<br>
We have one application written in Java and need call it's methods<br>
from Erlang. We use global to discover erlang services but jinterface<br>
mailbox can't be registered in such way. Gproc doesn't seem to work<br>
with jinterface either. It looks like it's possible to register<br>
jinterface mailbox via pg2, haven't tried it yet.<br>
<br>
What is the best way to make jinterface mailbox discoverable from erlang?<br>
<br>
Regards,<br>
Anton Lebedevich.<br></blockquote><div><br>I don't think there is any way other than explicit information exchange to find the name of a Jinterface Mbox.<br><br>If you are starting the Java Node from within Erlang, then you could simply pass in the name for your Mbox and use it.<br>
<br>Another way would be for the Java Node code to explicitly register the Mbox name using RPC (<a href="http://www.erlang.org/doc/apps/jinterface/jinterface_users_guide.html#id61657">http://www.erlang.org/doc/apps/jinterface/jinterface_users_guide.html#id61657</a>) to whatever registration mechanism you're using on the Erlang side.<br>
<br>Robby<br><br></div></div>