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?
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.
You can use the Java Management Extension (JMX) to expose methods in a running process through a simple web interface.
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).
In this scenario, many people use something like JMS.
Source: https://habr.com/ru/post/1717545/More articles:The table is locked in the inserts ... the site is unusable (sql server 2008) - sqlRegex - найти все ссылки в твиттере - regexWhat is the text representation of binary data? - textASP.NET Compilation Mode Auto vs Never - asp.netSharePoint, VirtualPathProviders and restarting applications - asp.netReset Visual Studio C ++ project settings - visual-studio-2008Building a Win32 DLL from a Linux library source - linuxHow can I use Perl to test C programs? - perlWindows program: how to track command line arguments? - command-lineCross compiler input - compiler-constructionAll Articles