[erlang-questions] best ways to discover jinterface mailbox from erlang?
Tue Dec 20 13:02:40 CET 2011
On Tue, Dec 20, 2011 at 9:27 AM, mabrek <mabrek@REDACTED> wrote:
> We have one application written in Java and need call it's methods
> from Erlang. We use global to discover erlang services but jinterface
> mailbox can't be registered in such way. Gproc doesn't seem to work
> with jinterface either. It looks like it's possible to register
> jinterface mailbox via pg2, haven't tried it yet.
> What is the best way to make jinterface mailbox discoverable from erlang?
> Anton Lebedevich.
I don't think there is any way other than explicit information exchange to
find the name of a Jinterface Mbox.
If you are starting the Java Node from within Erlang, then you could simply
pass in the name for your Mbox and use it.
Another way would be for the Java Node code to explicitly register the Mbox
name using RPC (
to whatever registration mechanism you're using on the Erlang side.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions