Shutting Down the XML Server

In an environment where few jobs are printed or you can be sure the XMLServer is idle, you can safely shut down the XML Server with a simple Control-C key combination without causing any problems. However, the recommended and safer method is to use the XMLServerShutdown command. This will shut down any XML Server in an orderly fashion: the server will refuse any new jobs and allow all outstanding jobs to complete before exiting. This is done through the following Ant command:

ant -file xmlserver.xml stop

The server will be switched into shut down mode and all outstanding jobs will be completed before the server exits and the XMLServerShutdown command informs you that the server has been shut down. Depending on the number of jobs being processed, this may take some time to complete.