Jinterface is a Java package included in Erlang/OTP used for integrating programs written in Java with Erlang.
Questions tagged [jinterface]
22 questions
1
vote
1 answer
Make an rpc call from Erlang/Elixir to Java via JInteface
Is it possible to make an rpc:call from erlang to java, using JInterface?
If yes, what should the Module argument in the call function set to?
call(Node, Module, Function, Args) -> Res | {badrpc, Reason}
What I got working was this (simple message…

Andriy Drozdyuk
- 58,435
- 50
- 171
- 272
1
vote
2 answers
Can one monitor the mailbox Pid that represents a Java mailbox via JInterface?
I have a Java process that sends my erlang gen_server messages via JInterface. The message being sent to me includes the Pid of the mailbox created on the Java side. That Pid is valid in the sense that I can send messages back to that Pid, and those…

Jr0
- 2,131
- 13
- 23
1
vote
1 answer
How do I handle only the newest message in the erlang queue?
I am writing a game engine in Erlang where the server is constantly sending new positions to the client. I want to just use the latest message and throw the rest away, is there some way I can do that? I am using Jinterface on the client side, so a…

rablentain
- 6,641
- 13
- 50
- 91
1
vote
1 answer
How do I communicate with a specific process in one Erlang node?
I have an Erlang server which is spawning a new process for each client that connects. Then the Pid of this new process is passed to the client (to make a connection to the new process.) Is that enough to make a connection from a jinterface client?…

rablentain
- 6,641
- 13
- 50
- 91
1
vote
1 answer
Sending a message from Java to a registered Erlang gen_server
How does one go about sending a message from a Jinterface Java server to a globally registered gen_server?
For example, my gen_server was started like this:
start_link ({global, myServerName}, Mod, Args, Options).
mbox.send("myServerName",…

ptmoy2
- 311
- 1
- 4
- 13
0
votes
1 answer
Connecting java with erlang using JInterface
I am trying to connect to a erlang node with java but I get an error. To start erlang I used this command erl -sname db -setcookie erlang.
This is my java code:
import com.ericsson.otp.erlang.OtpConnection;
import…

Mirt Hlaj
- 173
- 10
0
votes
1 answer
Jinterface not allowing java node to intiaite messaging
I start my Erlang node with:
erl -sname erlangNode -cookie secret
P = spawn( fun() -> receive _ -> io:format("gotit") end end).
register(java_server, P).
Then I run my java node client code:
OtpNode node = new OtpNode("bingo", "secret");
OtpMbox…

BAR
- 15,909
- 27
- 97
- 185