To serve static content the only thing you have to do is to register
resources with pax web (or any http service for that matter). You will find
details in Http Service specs. Teh simples way is to use pAx Web Extender
Whiteboard and just register a Resource as a service. The extender will take
care of it.

On Wed, Sep 9, 2009 at 12:18 PM, Josh Holtzman <jholtz...@berkeley.edu>wrote:

> I would like to add one, or even more, resource handlers [1] to the jetty
> instance running in osgi via pax-web.  Being lazy, I'd like to do this with
> the least amount of effort possible.  Is there a way to add resorce handlers
> to pax web without repackaging the pax-web osgi bundle?
>
> I'd settle for configuring this at startup, but I'd ideally like to be able
> to add resource handlers on the fly from other bundles.
>
> [1]
> http://jetty.mortbay.org/xref/org/mortbay/jetty/handler/ResourceHandler.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.blogspot.com
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