[erlang-questions] Naive questions about jinterface

Vlad Dumitrescu <>
Tue Aug 12 09:20:43 CEST 2008


2008/8/12 Dmitrii Dimandt <>:
> public class ServerNode {
>
> public static void main (String[] _args) throws Exception{
> OtpNode self = new OtpNode("", "cookie");
> OtpMbox mbox = self.createMbox("jimbox");
>
......
>
> Now it is my understanding that if I start erl with:
> erl -name  -setcookie cookie
>
> I can send messages to the Java node like this:
> {echo, ''} ! {self(), msg}

Hi,

Shouldn't that be either
    {jimbox, ''} ! {self(), msg}
or
    OtpMbox mbox = self.createMbox("echo");
?

best regards,
Vlad



More information about the erlang-questions mailing list