Publishing Jersey service instance to Grizzly

TjutjunkovDf

New Member
I can publish a jersey service to grizzly by doing the following\[code\]final String baseUri = "http://localhost:51000";final Map<String, String> initParams = new HashMap<String, String>();initParams.put("com.sun.jersey.config.property.packages", "my.rest.service");SelectorThread threadSelector = GrizzlyWebContainerFactory.create(baseUri, initParams);\[/code\]So the specified package will be scanned for any service classes annotated with \[code\]@Path\[/code\], and they will be initialized. My question is, is there any way to specify a pre-initialized jersey service class - initialied via a custom factory or even just by doing new MyService() - and publish it to Grizzly or any other container?
 
Top