users@jersey.java.net

[Jersey] Business object for jersey

From: cepam <emmanuel.lallemand_at_cpam-dijon.cnamts.fr>
Date: Mon, 5 Oct 2009 05:28:50 -0700 (PDT)

Hello,

This is a general question about 'using one business object with jersey',
due to the fact i'm a newbie in web development.

I've implemented a jersey application who manage some URIs. I have to create
one specific object used by all jersey 'methods'. What is the better
strategy to create this object only one time (no create/destroy for each
request).

I'm using a com.sun.jersey.spi.container.servlet.ServletContainer for my
jersey application.

Is there any init method (javax.servlet library) to override ?
Is it an obligation to use an EJB ?
Other solutions ?

Thanks very well for your answers.
E. L
-- 
View this message in context: http://n2.nabble.com/Business-object-for-jersey-tp3768500p3768500.html
Sent from the Jersey mailing list archive at Nabble.com.