erlang - Can one monitor the mailbox Pid that represents a Java mailbox via JInterface? -
i have java process sends erlang gen_server messages via jinterface. message beingness sent me includes pid of mailbox created on java side. pid valid in sense can send messages pid, , messages deposited in javan-side mailbox.
however doing monitor(process, pid) produces instant nodedown message (noproc).
is there way monitor pid?
java (and c) nodes different erlang nodes. hidden , not implement erlang nodes do. in particular, not implement monitor support.
this documented erlang distribution protocol:
11.7 new ctrlmessages distrvsn = 4 (otp r6)
these recognized erlang nodes, not hidden nodes.
monitor_p
...
otp implements monitoring fallback mechanism performing calls on (pseudo)-gen_servers on such nodes. comment enlightening:
%% node (c/java?) not supporting monitor. %% other possible case -- node not distributed %% -- should have been handled earlier. %% best possible monitor_node/2. %% code may hang indefinitely if process %% not exist. used featureweak remote nodes.
erlang jinterface
No comments:
Post a Comment