Java Interprocess Communication

I have a situation where I need to send commands to a running Java application, now I use the tcp / ip socket to send commands to the application using the Internet explorer context menu. But as soon as the application starts, anti-virus scanners complain that the application has started listening, although I am only listening to local connections. I think this may confuse users. Am I looking at other ways of communicating without cheating av scanners?

+3
source share
4 answers

To do this, it is best for you to opt out of the FIFO file queue. Or using the Java Native Access / Java Native Interface to write to NamedPipe or Shared Memory. If you are following the JNA / JNI route, you can create a Named Event .

But there is probably no way to do what you want with any efficiency without leaving the JNA / JNI route.

+4
source

You can use the Java Management Extension (JMX) to expose methods in a running process through a simple web interface.

+3
source

IPC, , , . / , , , .

IPC , , , SQLite ( ) . , , , , rowid, .

But my approach is not at all specific to Java, so there may be better ways to do this using Java (e.g. @darthcoder's answer).

+1
source

In this scenario, many people use something like JMS.

-1
source

Source: https://habr.com/ru/post/1717545/


All Articles