Hi Alex, you can also listen to WebEvents. They give you access to the HttpContext and the HttpService that created the context. I'm using this to register Servlets into war-bundles. Afaik, these WebEvent fields only exist in 2.0.0-SNAPSHOT.
Regards, Marc Am 02.02.2012 10:27, schrieb Achim Nierbeck: > Take a look at the whiteboard sample Activator at [1] > I think it does exactly what you need. > > regards, Achim > > [1] > - > https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/whiteboard/src/main/java/org/ops4j/pax/web/extender/samples/whiteboard/internal/Activator.java > > > 2012/2/2 Alexander Krauss <[email protected] > <mailto:[email protected]>> > > > The issue you have right now, is that the httpContext is usually > created by > > default unless you provide one as well. > > So you need to find a way of sharing this httpContext between > your two > > bundles. The only thing > > I can think of right now that might be possible is to share the > httpContext > > as a Service, this way it might work, > > though not tested/verified. > > Ok, we are getting closer... :-) > > It seems the questions are now: > > - How do I get hold of the httpContext originally, in order to publish > it as a service (in bundle A)? > - How do I "provide" the httpContext (from bundle B) to make sure that > no second one is created? > > > Thanks, > Alex > > _______________________________________________ > general mailing list > [email protected] <mailto:[email protected]> > http://lists.ops4j.org/mailman/listinfo/general > > > > > -- > > 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/> > > > _______________________________________________ > general mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/general
_______________________________________________ general mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/general
