No


     Le Lundi 27 avril 2015 18h43, Craig Niles <[email protected]> a écrit :
   
 

 Hi,

Are you using pax-web whiteboard?

On Mon, Apr 27, 2015 at 4:36 PM, ismail berrada <[email protected]> wrote:

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
 



 
  

Reply via email to