Hi
I have deployed a REST API as a bundle under felixResources are reachable from
http://IP:PORT/services/my/resources
I want to change the default alias/context path i.e. I want to access my
ressources from http://IP:PORT/my/resources
I tried the following solution in my Activator Class but it
failed[CODE]@Override
public void start(BundleContext bundleContext) throws Exception {
try {
// Register web services
Hashtable<String, Object> props = new Hashtable<String, Object>();
props.put("alias", "/");
myWebServiceRegistration =
bundleContext.registerService(myWebServiceRegistration .class, new
myWebServiceRegistration (), props); .....
}
[/CODE]How can I do that ?
Regards