One of the answers to http://stackoverflow.com/questions/191215/how-to-stop-java-process-gracefully shows a way to do it using JMX after modifying the JVM's command line options.
On Aug 17, 2016 2:45 AM, "Ulf Lilleengen" <l...@redhat.com> wrote: > Hi, > > I'm looking for a way to shutdown artemis and the JVM remotely. As of now, > I'm able to send the forceFailover operation, but it doesn't shut down the > JVM, which is what I am after. > > If this is not already supported, does it make sense to support it in some > way? Is there an approach that I have not thought of? > > I think I can work around this by having a parent process that forks and > can kill the child processes remotely, but I would like to avoid that. > > -- > Ulf Lilleengen >