IPC in Java

Hi all,

Whats the best method to securely communicate between a Java and a non-Java process in the same machine? I dont want to get into IP sockets as we have limitation firewalls.

From what I have read until now, using Domains sockets seems to be best (and interfacing that with JNI). But, is there such support in Windows as well? Will this work in MAC also?

Any other suggestions for the same is welcome.

Thanks in advance.

Regards,

Anand

[484 byte] By [anand_dsa] at [2007-10-3 3:42:13]
# 1

How about starting a new process and communicating with it through its stdin and stdout? it is simple (and also limited) but probably has problems.

Maybe you can use special file names (for example windows pipes use something like "\\.\pipe\<pipe name>"). I think opening a file with such special name works on windows (don't know about other OSes).

Genady

genadya at 2007-7-14 21:38:07 > top of Java-index,Core,Core APIs...