Overview
A Java class to shutdown Apache James Mail Server via TCP/IP. It shuts down Apache James Mail Server by passing shutdown command via simulated telnet session.
Background
Apache James mail server requires a telnet session (where you pass the shutdown command) for clean shutdown.
BTW: Apache James Mail server has a shoddy documentation which doesn't mention a way to shutdown the server in any intuitive location. You have to really hunt it down.
However without clean shutdown you cannot have config.xml file and hence cannot modify it to your needs. Ctrl-C shutdown for some inexplicable reason deletes the file.
There is a utility floating around on the net which didn't download properly for me. Also it isn't configurable. So I thought of creating a simple configurable utility for my needs.