How to communicate java and erlang
Thilani Abeysinghe <a.thilani at gmail.com>
The purpose of this tutorial is to illustrate how to use jinterface for communicating with an Erlang backend
The reader is also encouraged to read the mailing list question.It's about 'Strategies to connect from Java' Refer Erlang Manual for more details on jinterface
This tutorial demonstrates how to communicate with an Erlang process (node) using a Java program For this example I have used java 1.5.0_07 and Erlang OTP12B distribution.
First we create a Erlang node. In windows you can create a erlang node by using the command prompt using below command.
werl -sname enode -setcookie erlang
erl -sname enode -setcookie erlang