I have to admit that I can't get it to work that way. I'm using eclipse and
followed the instructions listed on
http://cxf.apache.org/setting-up-eclipse-for-running-and-debugging-distributed-osgi.html.
My plugin activator writes in its start method: 
  props.put("osgi.remote.interfaces", "*");
  props.put("service.exported.configs", "org.apache.cxf.ws");
  props.put("org.apache.cxf.ws.address",
"http://localhost:9090/someotherurl";);
  props.put("org.apache.cxf.ws.frontend", "jaxws");

But once I start the OSGi Framework it publishes the services at 
http://localhost:9000/org/knime/dosgi/test/TemperatureService?wsdl.

During start-up it also complains: 
"WARNING: A JAX-WS Annotation was found on
org.knime.dosgi.test.TemperatureService while using the Simple frontend. 
For better results, use the JAX-WS frontend."

If I then enter "osgi> status org.knime.dosgi.test_1.0.0.qualifier" into the
OSGi console, it writes a lot of status messages, including:
{org.knime.dosgi.test.TemperatureService}=
  {org.apache.cxf.ws.address=http://localhost:9090/someotherurl, 
   org.apache.cxf.ws.frontend=jaxws, osgi.remote.interfaces=*, 
   service.exported.configs=org.apache.cxf.ws, service.id=160}

{org.osgi.service.discovery.ServicePublication}=
 
{osgi.remote.endpoint.location=http://localhost:9000/org/knime/dosgi/test/TemperatureService,
 
   osgi.remote.discovery.publication.service.properties=
     {osgi.remote.interfaces=*, 
     
osgi.remote.endpoint.location=http://localhost:9000/org/knime/dosgi/test/TemperatureService},
 
   osgi.remote.service.interfaces=[org.knime.dosgi.test.TemperatureService], 
   osgi.remote.endpoint.id=0e2d38c2-cb11-41c4-8374-2b0fbad884cc, 
   service.id=161}

So obviously my parameters are associated with the service but not properly
picked up ServicePublication. 

Help?!

Thanks,
 Bernd
 
-- 
View this message in context: 
http://old.nabble.com/DOSGi---how-do-i-change-http-port--tp26592896p26609063.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to