On Thursday 03 March 2011 5:54:20 AM jpv wrote:
> Hi Daniel
> 
> But what about url, ip and so on  ?
> .....
> Endpoint.publish("http://localhost:8080/service";, new Service());
> 
> OK, http://localhost:8080/service works fine (CXF works fine anyway !).
> 
> But suppose localhost -> 172.99.123.45 and  (via DNS)
> http://myservice.mycorp/service -> http://172.99.123.45:8080
> 
> well, i can't reach http://172.99.123.45:8080/service nor
> http://myservice.mycompagny/service
> How do i have to deal with that ?  Maybe my question is stupid !

I think the jetty stuff by default only exposes the service on the exact host 
you specify.  Thus, if you do:

 Endpoint.publish("http://myservice.mycompagny:8080/service";, new Service());

it would be only on the public port.  You can TRY:
"http://0.0.0.0:8080/service";
(I'm not sure on that)



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

Reply via email to