tags:

views:

40

answers:

0

Hi,

I have a problem. I wish to add resource dynamically to running grizzly server. my code is:

public class Main { static public SelectorThread threadSelector; static public final String baseUri = "http://localhost:9998/";

public static void main(String[] args) throws IOException {


 final Map<String, String> initParams = new HashMap<String, String>();

 initParams.put("com.sun.jersey.config.property.packages",
   "workflow.resources");

 System.out.println("Starting grizzly...");
 threadSelector = GrizzlyWebContainerFactory.create(
   baseUri, initParams);

 System.in.read();
 threadSelector.stopEndpoint();
 System.exit(0);
}

}

I need to add new root resource (generated in different app) without restarting server is it possible?

Sry for my english.