Hi,
That is it. Just one comment in-lined.
On Jun 26, 2009, at 9:14 AM, testn wrote:
>
> Thanks. I ended up doing something like:
>
> final Map<String, String> initParams = new HashMap<String,
> String>();
> initParams.put("com.sun.jersey.config.property.packages",
> resources);
>
> GrizzlyWebServer webServer = new GrizzlyWebServer(9090);
> ServletAdapter adapter = new ServletAdapter();
>
> CacheManager manager = new CacheManager();
> MBeanServer mBeanServer =
> ManagementFactory.getPlatformMBeanServer();
> ManagementService.registerMBeans(manager, mBeanServer, false,
> false,
> false, true);
>
>
> adapter.addInitParameter("com.sun.jersey.config.property.packages",
> resources);
> adapter.setServletInstance(new SpringServletContainer());
If you are using the Spring support you may not require the init
parameter if you resource/provider classes are registered as spring
beans (the init parameter is in such cases harmless it just means you
doing unnecessary work).
Paul.