How to communicate java and erlang
From Erlang Community
(Difference between revisions)
| Revision as of 09:48, 16 January 2009 (edit) Thil (Talk | contribs) ← Previous diff |
Revision as of 09:58, 16 January 2009 (edit) (undo) Thil (Talk | contribs) (werl) Next diff → |
||
| Line 3: | Line 3: | ||
| ==Overview== | ==Overview== | ||
| - | The purpose of this tutorial is to illustrate how to use <tt>jinterface</tt> for | + | The purpose of this tutorial is to illustrate how to use <tt>jinterface</tt> for communicating with an Erlang backend |
| The reader is also encouraged to read the mailing list [http://www.trapexit.org/forum/viewtopic.php?p=43715 question].It's about ''''Strategies to connect from Java'''' Refer Erlang Manual for more details on <tt>jinterface</tt> | The reader is also encouraged to read the mailing list [http://www.trapexit.org/forum/viewtopic.php?p=43715 question].It's about ''''Strategies to connect from Java'''' Refer Erlang Manual for more details on <tt>jinterface</tt> | ||
| Line 12: | Line 12: | ||
| - | == | + | ==Erlang Backend== |
| - | + | First we create a Erlang node. In windows you can create a erlang node by using the command | |
| - | + | <pre> | |
| - | + | windows: werl -sname enode -setcookie erlang | |
| - | + | </pre> | |
| + | For windows | ||
| + | <pre> | ||
| + | Linux : erl -sname enode -setcookie erlang | ||
| + | </pre> | ||
Revision as of 09:58, 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 I have used java 1.5.0_07 and Erlang OTP12B distribution.
Erlang Backend
First we create a Erlang node. In windows you can create a erlang node by using the command
windows: werl -sname enode -setcookie erlang
For windows
Linux : erl -sname enode -setcookie erlang

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

