Hi,

No there is no such option. Even if we would implement a lookup for a
default http context factory without a special handling we can still run
into ordering problems which I do not like.
So, to avoid such situation (ordering) I would propose a solution like: when
there is a need for a default http context, I can look for a boolean
configuration property (e.g. waitForCustomContext) that tells us to do a
lookup and do not proceed till a custom default context factory is there
(maybe with a timeout).

On Thu, Mar 11, 2010 at 1:13 AM, Josh Holtzman <jholtz...@berkeley.edu>wrote:

> I've been reading through the mail archives and the ops4j Jira, but I can't
> seem to figure out whether there is support for registering a custom default
> http context (via whiteboard or otherwise).
>
> My use case is this: I use a 3rd party bundle (Apache CXF), which registers
> servlets using a null HttpContext.  Pax-web creates a new DefaultHttpContext
> for these servlets, and this context always returns true in the
> handleSecurity() method.  I'd like to be able to register a different
> default http context so I can make authorization decisions in one place for
> the entire URL space.  I asked the CXF folks if there might be a fix on
> their side, but I wanted to follow up here, too.  The original thread is
> here [1].
>
> I don't think registering a filter is an option because the servlets each
> have their own HttpContext.
>
> Any pointers, examples, or suggestions are greatly appreciated.
>
> [1]
> http://old.nabble.com/Specifying-an-org.osgi.service.http.HttpContext-in-DOSGi-td27641163.html
>
> Thanks,
> Josh
>
> _______________________________________________
> general mailing list
> general@lists.ops4j.org
> http://lists.ops4j.org/mailman/listinfo/general
>
>


-- 
Alin Dreghiciu
Software Developer
My profile: http://www.linkedin.com/in/alindreghiciu
My blog: http://adreghiciu.wordpress.com
http://sonatype.com - Sonatype - The Maven Company
http://www.ops4j.org - New Energy for OSS Communities - Open Participation
Software.
http://www.qi4j.org - New Energy for Java - Domain Driven Development.
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to