From Java, I THINK you can do something like:

bus.getExtention(JettyHTTPServerEngine.class)
     .createJettyHTTPServerEngine(null, 8080, "http");

and that will create the connector for the port on all hosts, not the one for 
the passed in host.    Not 100% sure though.

Dan



On Tuesday 08 March 2011 4:51:34 PM jpv wrote:
> well, well, well.... really need help for that stuff : 2 webservices (1
> jax-rs, 1 jax-ws) published on http://localhost:8080/json and
> http://localhost:8080/soap. I want to deploy theses two services on
> multiple IP, URL (e.g http://172.xx.yy..:8080/json (/soap),
> http://myservice.mycompagn.org/json .... etc). With a ".war", i can use
> virtualHost configured in xml config file. Not this time, i want to do
> everything in java. But ..... hell !
> Any ideas ?
> 
>               JAXRSServerFactoryBean sf = new JAXRSServerFactoryBean();
>               sf.setResourceClasses(MyRest4json.class);
>               sf.setAddress("http://myaddress:"; + port + "/json");
>               sf.create();
> 
>               Object implementor = new MySOAPClassImpl();
>               Endpoint ep = Endpoint.publish("http://myaddress:"; + port + 
> "/soap",
> implementor);
>               EndpointImpl epImpl = (org.apache.cxf.jaxws.EndpointImpl) ep;
>               SOAPBinding soap = (SOAPBinding) ep.getBinding();
>               soap.setMTOMEnabled(true);
>                 .........
>                 // Here the server is running both for REST and SOAP, fast,
> light, easy ...
>                //  but virtualHosting ? How ?
> 
> 
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Virtual-host-with-jetty-standalone-RS-WS-n
> eed-help-tp3414715p3414715.html Sent from the cxf-user mailing list archive
> at Nabble.com.

-- 
Daniel Kulp
[email protected]
http://dankulp.com/blog
Talend - http://www.talend.com

Reply via email to