Erlang Central

Difference between revisions of "How to communicate java and erlang"

From ErlangCentral Wiki

(werl)
Line 3: Line 3:
  
 
==Overview==
 
==Overview==
The purpose of this tutorial is to illustrate how to use <tt>jinterface</tt> for communicate with a Erlang backend
+
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:
  
  
==Demostartion==
+
==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