Is it possible to throw an exception from JBOSS which will terminate the process? I don’t want to do something as crude as system.exit but the code our code runs as a plugin in a larger infrastructure and I want to check some states at startup and exit out of the system if data is missing.
Is it possible to throw an exception from JBOSS which will terminate the process?
Share
It’s probably message to use the
ModelControllerClientto connect to the server and execute the:shutdowncommand.Something like:
If you’re just shutting down you could probably ignore the outcome.