Public void startwebservice () throws exception
{
Jettyhttpserverenginefactory Eg = new jettyhttpserverenginefactory ();
Eg. createjettyhttpserverengine (9000, "HTTP ");
Webservicemethod = new webservicemethod ();
Serverfactorybean svrfactory = new serverfactorybean ();
Svrfactory. setserviceclass (webservicemethod. Class );
Svrfactory. setaddress ("http: // localhost: 9000/Hello ");
Svrfactory. setservicebean (webservicemethod );
// Svrfactory. getservicefactory (). setdatabinding (New
// Aegisdatabinding ());
Svrfactory. Create ();
}
Http://cxf.547215.n5.nabble.com/Virtual-host-with-jetty-standalone-RS-WS-need-help-td3414715.html
From
Java, I think you can do something like:
Bus. getextention (jettyhttpserverengine. Class)
. Createjettyhttp serverengine (null, 8080, "HTTP ");
And that will create the connector for the port on all hosts, not the one
The passed in host. Not 100% sure though.