Hi,

as per OSGi spec this isn't possible for war or wab bundles.
But you can do something like this with Karaf4 and Pax-Web 4 if you use the
whiteboard extender of Pax-Web and/or the Pax-Web WebContainer (an enhanced
HttpService).
With this version you are able to register a HttpContext as a shared
Context, and therefore you are able to register web-resources to this
shared HttpContext.

regards, Achim


2015-07-02 23:21 GMT+02:00 jtkb <[email protected]>:

> Hi,
>
> I've been using/learning/experimenting using Apache Karaf and Pax Web 3.X
> to
> deploy a web application.
>
> What I would like to do now is be able to split my web application across
> several OSGi bundles, similar to what  Virgo Snaps
> <
> https://www.eclipse.org/virgo/documentation/virgo-documentation-3.5.0.RELEASE/docs/snaps-guide/htmlsingle/virgo-snaps-guide.html
> >
> allows to be done.
>
> As far as I am aware, although I can make the Java code visible to other
> Java code in another bundle, web content/pages is not. I want to structure
> my bundles with a parent bundle provides a 'base' web-page frame work into
> which is can load/display web pages/content from child bundles if/as they
> become available. Based upon my understanding above, this means that the
> parent bundle needs to be able to access content in it's child bundles.
>
> My question is, is this possible to do this with Karaf and Pax web as they
> stand? So far I believe that each web bundle is in isolation to one another
> i.e. no visibility.
>
>
>
> --
> View this message in context:
> http://karaf.922171.n3.nabble.com/Construct-a-Web-Application-From-Multiple-Bundles-tp4041252.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>



-- 

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

Reply via email to