Shared Filter with a Wab

2018-10-17 Thread Ygor Castor
Hello! I'm having trouble to use a SharedContext filter within some WAB resources. I've created a filter using blueprint and exposed it as a shared Context like this: And i need all my wab bundles, which contains mostly static resources to pass through this

Re: [PAX-WEB] WebContainer - registering ServletFilter - confusion

2018-10-17 Thread Grzegorz Grzybek
Hello First, the most important line in your code is: WebContainer webContainer = (WebContainer) context.getService(reference); And especially "context" you're using. pax-web in general and "registerFilter()" method in particular is an attempt to implement concepts from javax.servlet

Re: CDI?

2018-10-17 Thread ranx
Weird, I didn't see this last year after you posted it. I don't know why. I was up here reading on the latest as I'm going to be doing some prototyping with Fuse 7 and wanted to see what latest best practices are and where CDI is after the February release date. I probably should write a

RE: [PAX-WEB] WebContainer - registering ServletFilter - confusion

2018-10-17 Thread Lukasz Lech
From: ops4j@googlegroups.com [mailto:ops4j@googlegroups.com] On Behalf Of Grzegorz Grzybek Sent: Mittwoch, 17. Oktober 2018 09:23 To: ops4j@googlegroups.com Subject: Re: [PAX-WEB] WebContainer - registering ServletFilter - confusion if you want global filters or prometheus integration (I

Re: [PAX-WEB] WebContainer - registering ServletFilter - confusion

2018-10-17 Thread Grzegorz Grzybek
Hello śr., 17 paź 2018 o 08:44 Lukasz Lech napisał(a): > OK thank you, I’ll try that way. > > > > So I need either to implement a bundle that will get the names of other > bundles it should register metrics for, or I should build metrics in > specific bundles, and in case I’d like to have