I'm trying to all add classes to my JaxRs application at run-time but this 
seems to hang Restlet - I can connect to the HTTP port but get no response.

Is it possible to hot deploy JaxRS classes?

I currently do something a bit like this to redeploy:

    comp.stop
    this.application.stop();
    comp.getDefaultHost().detach(this.application);

    this.application = new JaxRsApplication( comp.getContext(  
).createChildContext(  ) );
    this.application.add( JaxRsApp.getInstance(  ) );
    this.comp.getDefaultHost(  ).attach( "/rest/", this.application );
    comp.start();

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2847668

Reply via email to