Hello Folks ,
I am trying to deploy a restful web service by setting
org.apache.cxf.rs.httpservice.context and I am not able to get it working .
However same service works when I use "org.apache.cxf.rs.address .
Here is the code snippet where I am creating the properties that are passed
to the registration process.
props.put("service.exported.interfaces", "*");
props.put("service.exported.configs", "org.apache.cxf.rs");
props.put("service.exported.intents", "HTTP");
if (address != null) {
if (address.startsWith("http")) {
props.put("org.apache.cxf.rs.address", address);
} else {
System.out.println("Registering using
org.apache.cxf.rs.httpservice.context");
props.put("org.apache.cxf.rs.httpservice.context", address);
}
}
When I compare the endpoint descriptions in the logs they are exactly same
except the address .
I would appreciate any insights one can provide . I am using CXF DOSGI
single bundle 1.2
Thanks
Sunil
--
View this message in context:
http://cxf.547215.n5.nabble.com/RESTFul-service-using-org-apache-cxf-rs-httpservice-context-tp4890732p4890732.html
Sent from the cxf-user mailing list archive at Nabble.com.