Skip to main content



      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 16:59
Eclipse UserFriend
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: Sun Jul 06 00:02:37 EDT 2025

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

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

Back to the top