On 12/7/10 5:33 PM, Ana Rosselló-Busquet wrote:

Hi,
I just started implementing web services for the first time, so I am really
new in this topic. I am working with eclipse and equinox to implement web
services. I have been following the tutorial:

http://cxf.apache.org/distributed-osgi-greeter-demo-walkthrough.html

In this tutorial the web service is registered here (I changed localhost for
my IP address):
props.put("org.apache.cxf.ws.address", "http://10.51.32.208:9090/greeter";);

However, when run the example in the console I can see:

Setting HttpService port to: 8080
felix.fileinstall.poll  (ms)   2000
felix.fileinstall.dir            C:\Documents and
Settings\aros\Desktop\eclipse\.\load
felix.fileinstall.debug          -1
felix.fileinstall.bundles.new.start          true

So it looks like the web service is registered in 8080, which I cannot
really understand. Could someone please explain me what is happening?
It looks like the cxf-dosgi-ri is using cxf-http-jetty-transport instead of the http service. So it can start the service in 9090.

What if I change 9090 to 8080?
props.put("org.apache.cxf.ws.address", "http://10.51.32.208:8080/greeter";);

I don't think it will work, as cxf-http-jetty-transport will complain about the port is used.

--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to