1 Jive
Jive is an Erlang Application which makes it possible for a Java Applet/Application to communicate with an Erlang server. Java is great for client-side interaction, whereas Erlang is great for server-side programming. The idea behind Jive is to integrate these two languages. Jive allows a Java Applet/Application to interact with an Erlang server.
The Jive ArchitectureCommunication between the client and the server is socket based and both Java and Erlang has Jive packages which hide the socket communication from the programmer. Furthermore, the Java side contains a number of wrapper classes for each of the Erlang variable types (See "Concurrent Programming in ERLANG"/ISBN 0-13-508301-X).
1.1 Java -> Erlang
A Java client can interact with Erlang using three mechanisms:
- spawn new Erlang processes
- do Erlang
apply
on functions- send messages to Erlang processes.
1.2 Erlang -> Java
Erlang processes can send messages to Java objects.