me.at.coding
me.at.coding

Reputation: 17654

CLI communication with already running Java application?

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 ;-)

Upvotes: 5

Views: 989

Answers (1)

secmask
secmask

Reputation: 8107

I prefer using socket for cross platform IPC, with help of Apache thrift . You can implement RPC method to use from CLI utility.

Upvotes: 1

Related Questions