users@jersey.java.net

adding root resource to grizzly

From: <raist1_at_op.pl>
Date: Fri, 26 Feb 2010 01:19:11 +0100

Hi,

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


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 application)
without restarting server is it possible?

Sorry for my english.

Andy