When starting a application, one can pass parameters to the application. But how can one pass parameters to a already running (Java) application / how can I handle such cases in my Java program?
In other words: How can I communicate from a .bat file / CLI processes with a already running Java application? Note that both things (CLI stuff and Java application) are my own applications and I can adapt the source code – I just don’t know how 😉
I prefer using socket for cross platform IPC, with help of
Apache thrift. You can implement RPC method to use from CLI utility.