[erlang-questions] Naive questions about jinterface

Vlad Dumitrescu vladdu55@REDACTED
Tue Aug 12 09:20:43 CEST 2008


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

Hi,

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

best regards,
Vlad



More information about the erlang-questions mailing list