Hi,

Yep, using 0.0.0.0 can ensure bind all network interface from your machine.

Freeman
On 2011-5-24, at 下午10:24, Chris Richmond wrote:

Using the :

JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean();
     svrFactory.setServiceClass(LiveActionService.class);
svrFactory.setAddress("http://0.0.0.0:"; + WEB_SERVICE_PORT + "/ MyService");
     svrFactory.setServiceBean(implementor);
     svrFactory.create();


method to serve up my web service works just fine and dandy, and seems to be the only way to allow my service to be invoked from any of the following just fine:

http://localhost   (on the same machine, obviously)
http://servername
http://ipaddress

I do not know of another way to make it work this way. Entering either server name or ipaddress or localhost explicitly in the setAddress() method causes one or more of the other URL invocations not to work.

Right now it seems to work the way I want, but I just want to confirm that the intended/best setAddress usage/config is as I have it, using the http://0.0.0.0 format.

Thanks,
Chris


---------------------------------------------
Freeman Fang

FuseSource
Email:[email protected]
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com
Connect at CamelOne May 24-26
The Open Source Integration Conference








Reply via email to