Question

I recently posted a similar Erlang-Java related question called "Java to Erlang Messages".

I have made some progress sense then, and i've gotten a stable connection up-and-running between the two languages (thanks to a older question that i found on stackoverflow).

But my problem is now that i can only send a message to Java from Erlang and receive it, Im having trouble making a return message.

What do i have to create in order to send a message from java, when can i send it?

This is some of my code for receiving.

    try {
        node = new OtpNode("javambox@localhost", "gui"); // name, cookie
    } catch (IOException ex) {
        System.exit(-1);
    }

...

OtpMbox mbox = node.createMbox("mbox");

    while (true) {

        OtpErlangObject o = null;

        try {
            o = mbox.receive();
Was it helpful?
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top