Hi, glad you found a solution. But I think what you actually should be using is more like what is in this sample/integration-test [1] Registering a Servlet in one Bundle and re-using a filter from another bundle This is handled by a shared context. In your case you just need a resource servlet, which can also be done with DS (reduces the footprint compared to blueprint) [2] and combine it with the filter in a shared context.
regards, Achim [1] - https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/SharedContextFilterIntegrationTest.java [2] - https://github.com/ops4j/org.ops4j.pax.web/blob/master/samples/whiteboard-ds/src/main/java/org/ops4j/pax/web/samples/whiteboard/ds/WhiteboardResource.java 2017-04-05 14:52 GMT+02:00 Castor <[email protected]>: > I got it! > > For future references if someone needs to solve the same problem, i solved > it retrieving the OSGI service inside the filter using JNDI, it worked like > a charm. > > > > -- > View this message in context: http://karaf.922171.n3.nabble. > com/Blueprint-and-Pax-Web-tp4050033p4050040.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
