Call a method of running java application on the same instance of the application from command prompt
By : João Costa
Date : March 29 2020, 07:55 AM
I wish this helpful for you The easiest way to do this is using JMX. You just have to expose methods you want to call to MBean. Then you can use any JMX client you want to call the methods. You can either use JConsole that is a part of your JDK or create your own command line application. There is also command line JMX client.