On Tuesday, July 10, 2012 01:47:36 AM XiLai Dai wrote:
> Thanks Dan!
> Really don't understand what the meaning of your codes :( but I try to
> find another way like this: 
 
> public class ServiceListenerImpl implements ServerLifeCycleListener{
>     String wsdlURL = ......;
>     public void startServer(Server server) {
>         String origAddress =
> server.getEndpoint().getEndpointInfo().getAddress();
 ServerFactoryBean
> factoryBean = new ServerFactoryBean();
> factoryBean.setServiceClass(server.getEndpoint().getBinding().getBindingI
> nfo().getService().getInterface().getService().getClass());
> factoryBean.setAddress(origAddress);
>         factoryBean.setServer(server);
>         factoryBean.setWsdlURL(wsdlURL);
>         server = factoryBean.create();
>     }
> }
> 
> Is it feasible in this way?

Not really, no.  That will create a second service on the same address.   
That will likely result in exceptions in the logs as only one of the 
services will be allowed to be activated and such.



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

Reply via email to