users@jersey.java.net

Dynamic reconfiguration?

From: Tom Davies <tom_at_atlassian.com>
Date: Tue, 8 Apr 2008 17:22:18 +1000

Hi,

I want to be able to add and remove resources from a WebApplication at
runtime.

I understand how to write a ResourceConfig implementation which keeps
track of which resources should be available.

Can I simply extend ServletContainer and add a method:

void reload() {
          this.application = create();

         configure(servletConfig, resourceConfig, this.application);

         initiate(resourceConfig, this.application);
}

which I would call when the state of my resourceConfig instance changes?

Or is there a better way?

Thanks,
   Tom
--
ATLASSIAN - http://www.atlassian.com
Our products help over 8,500 customers in more than 95 countries to  
collaborate