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 <alexander.kra...@qaware.de>

> > 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
> general@lists.ops4j.org
> 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
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to