1. dale.thatcher
  2. Erlets

Overview

HTTPS SSH
INTRODUCTION

This library allows a simplified interface bridge between Erlang and Java when
using the rpc:call style interactions.

USING

public class MyErletServer {
    @ErlangFunction(module="pinger", function="ping")
    public OtpErlangObject ping(OtpErlangObject arguments) {
        return new OtpErlangString("pong");
    }

    public static void main(String args[]) {
        Erlets server = new Erlets("java@127.0.0.1");
        server.addFunctions(new MyErletServer());
        server.start();
    }
}

From the command line:
$ erl -name 'erl@127.0.0.1'
Eshell V5.7.3  (abort with ^G)
(erl@127.0.0.1)1> rpc:call('java@127.0.0.1', pinger, ping, []).
"pong"

BUILDING

You'll need to update the path in the pom.xml for your local install of the
Erlang JInterface classes.  Then it should just be:

$ mvn install