I have a java application that includes a berth server for providing http services.
If I find it through the url:
http:
he will stop the berth server and complete it himself.
I have two options:
1. calls `myserver.stop()`, which `myserver` is an instance of `org.mortbay.jetty.Server`, and had set `.setStopAtShutdown(true)` 2. just invoke `System.exit()`
I wonder if you can just call System.exit() to stop the whole application?
source share