hi

might want to take a look at the docs here [1].
In short. Use a specialized context handler for static resources outside
the container.

regards, Achim


[1] -
http://ops4j.github.io/pax/web/SNAPSHOT/User-Guide.html#adding-specialized-contexthandlers

2016-11-04 17:02 GMT+01:00 Bengt Rodehav <[email protected]>:

> I'm using Pax-Web in Karaf 4.0.7.
>
> I have most of the resources I need for the web application packaged in my
> bundle but some need to exist outside the bundle in a normal disk folder.
> How can I access a normal disk folder with Pax-Web?
>
> Today I register resources as follows:
>
> mWebService.registerResources("/root", "/webroot", mHttpContext);
>
> The "/webroot" resides in the root of my bundle (jar). How can I register
> resoures that exists in the folder: C:\resources?
>
> /Bengt
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to