Does the CLI communicate with a running Java application?
•
Java
When you start an application, you can pass parameters to the application But how do I pass parameters to a running (Java) application / how do I handle this in a java program?
In other words: how to start from Bat file / cli process to communicate with a running Java application? Note that these two things (CLI things and Java applications) are my own applications, and I can adjust the source code - I just don't know how; -)
Solution
With the help of Apache thrift, I prefer to use socket for cross platform IPC You can implement the RPC method used from the CLI utility
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码