How to communicate java and erlang
From Erlang Community
| Revision as of 15:47, 16 January 2009 (edit) Thil (Talk | contribs) ← Previous diff |
Revision as of 15:49, 16 January 2009 (edit) (undo) Thil (Talk | contribs) Next diff → |
||
| Line 9: | Line 9: | ||
| ==Introduction== | ==Introduction== | ||
| This tutorial demonstrates how to communicate with an Erlang process (node) using a Java program | This tutorial demonstrates how to communicate with an Erlang process (node) using a Java program | ||
| - | For this example | + | For this example java 1.5.0_07 and Erlang OTP12B distribution is used. |
| Line 17: | Line 17: | ||
| we need to know the name of the Erlang node and the cookie. | we need to know the name of the Erlang node and the cookie. | ||
| Otherwise we can create an Erlang node. | Otherwise we can create an Erlang node. | ||
| - | In windows we can create a erlang node by using the command prompt | + | In windows we can create a erlang node by using the command prompt |
| + | try the command. | ||
| <pre> | <pre> | ||
| werl -sname enode -setcookie erlang | werl -sname enode -setcookie erlang | ||
Revision as of 15:49, 16 January 2009
Contents |
Author
Thilani Abeysinghe <a.thilani at gmail.com>
Overview
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
Introduction
This tutorial demonstrates how to communicate with an Erlang process (node) using a Java program For this example java 1.5.0_07 and Erlang OTP12B distribution is used.
PartOne : Erlang Backend
First we need to have a erlang process (node)to communicate with Java program. If we are going to connect to an existing erlang node. we need to know the name of the Erlang node and the cookie. Otherwise we can create an Erlang node. In windows we can create a erlang node by using the command prompt try the command.
werl -sname enode -setcookie erlang
For Linux
erl -sname enode -setcookie erlang

Digg It
Del.icio.us
Reddit
Facebook
Stumble Upon
Technorati

