users@jersey.java.net

[Jersey] Does jersey create a new resource instance for every call?

From: Tony Anecito <adanecito_at_yahoo.com>
Date: Tue, 18 Jan 2011 19:41:01 -0800 (PST)

Hi All,

I noticed that it appears that jersey servlet (1.5) in Tomcat 6.0.20 creates a
new instance of the resource object for every call. I say this becuase I noticed
my constructor of my resource object gets called for every get/post/put from my
jersey client. Is that correct? If so it seems to reduce scalability.
Is there a pool of resources objects I can configure for?

Thanks,
-Tony