dev@jersey.java.net

Reducing start up time (Appengine)

From: Hugo Visser <botteaap_at_gmail.com>
Date: Tue, 21 Sep 2010 18:04:32 +0200

Hi,

I'm using Jersey (+Guice) in a few webapps on app engine and I love it. The
only downside is the initialization time that Jersey needs, around 2 seconds
on my apps. Unlike a normal container app engine instances are spun down
once in a while so start up time matters a lot.

I noticed that Jersey is doing a lot of discovering and registering of
providers, some of which I most likely never use. Is there any way to hook
in to this mechanism to reduce the number of components that get registered?

What would be the best approach for doing lazy initialization of resources
and providers and is this is feasible?

Thanks,

Hugo