|Passing an object into a servlet(context) [message #106499]
||Tue, 18 March 2008 20:59
| Richard Eckart
Registered: July 2009
I am using the Equinox OSGi Http Service and would like to pass an
object to servlets that are being registered through the Extension Point
mechanism. I tried to find a way to access the ServletContext that is
being created by the Http Service and call setAttribute() there but I
did find no way to access the ServletContext.
I am setting up an object previous to the servlets being called the
first time and this objects must be available to the servlets in some
way. Currently I am using a static singleton, but I would like to be the
object only unique within a particular HttpContext (ServletContext).
Any ideas how I can get along?
Powered by FUDForum
. Page generated in 0.02047 seconds