Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Passing an object into a servlet(context)
Passing an object into a servlet(context) [message #106499] Tue, 18 March 2008 20:59
Richard Eckart is currently offline Richard EckartFriend
Messages: 11
Registered: July 2009
Junior Member
Hi,

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?

Cheers,

Richard
Previous Topic:Problems running equinox weaved with aspectj
Next Topic:Finding bundles
Goto Forum:
  


Current Time: Wed Oct 27 14:17:09 GMT 2021

Powered by FUDForum. Page generated in 0.02047 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top