I have a java application. It can be started with couple of command line flags. I want to provide ability “restart” the application by user.
Currently we save the the arguments on a control file, reads it when restarting the application. What is the best way to restart the application – how can I retain the command line arguments?
Using the RuntimeMXBean you could retrieve , Classpath, Bootclasspath etc.