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-need-help-tp3414715p3414715.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to