If you're running embedded, I'm not sure there's a robust/reliable way
of shutting off the web service provider but not the Jetty server
running it; if you need to maintain the distinction between the two and
have the server continue to run while the endpoint is shutdown perhaps
deploying your web service as a WAR on Tomcat or standalone Jetty would
be a better option.
Our samples rely on System.exit() to close both, for example:
http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first_https/src/main/java/demo/hw_https/server/Server.java?revision=1368316&view=markup
Glen
On 08/08/2012 02:42 PM, Juan José Pérez Consuegra wrote:
Does anyone tell me how to start/stop Jetty server from code. The same with
services.
thanks.