Hello I'm just in the process of reviewing Pax Web 8.0.0-SNAPSHOT for upcoming Karaf 4.3.0 release. There's lot to review, because some important Whiteboard implementation aspects are not handled correctly in Pax Web (mapping a servlet to multiple ServletContexts for example).
Will it be possible to get a ServletContext OSGi service injected into a > @Reference, when using the web whiteboard of OSGi 7? > Sure - it's described in 128.3.4 Publishing the Servlet Context chapter of CMPN specification and I think it should already be a case (at least that's what I remember from JBoss Fuse (based on Karaf)). About actual Whiteboard R7 annotations - support for those has yet to be added to Pax Web. kind regards Grzegorz Grzybek wt., 11 lut 2020 o 16:43 Steinar Bang <[email protected]> napisał(a): > I'm currently using shiro 1.5.0 with web whiteboard in karaf 4.2.8. > > I'm using some deprecated Shiro classes to set up shiro, and I want to > get rid of using the deprecated classes. > > The first snag I've encountered when replacing the deprecated classes is > that the IniWebEnvironment class needs a ServletContext reference, and > that's not something I have. > > In the karaf 4.2.8 version of the whiteboard I create a > ServletContextHelper DS component to create the context the servlets and > filters relate to. > > But the ServletContextHelper doesn't implement the ServletContext > interface, so I can't use that with the IniWebEnviroment. > > Will it be possible to get a ServletContext OSGi service injected into a > @Reference, when using the web whiteboard of OSGi 7? > > -- > -- > ------------------ > 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]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ops4j/86o8u5165h.fsf%40dod.no. > -- -- ------------------ 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]. To view this discussion on the web visit https://groups.google.com/d/msgid/ops4j/CAAdXmhpbOTxiVw5e3%2BG%3DKF_8iztSHtavHRt3JrVxcG8mzL-Uqw%40mail.gmail.com.
