aries-jax-rs-whiteboard ContainerRequestFilter not triggered

aries-jax-rs-whiteboard ContainerRequestFilter not triggered

Hello,

I'm using aries-jax-rs-whiteboard to host by REST service and I want to use a ContainerRequestFilter to check for authentication token. However, although the filter is registered as an OSGI service, it is not triggered or even instantiated. Here is my REST api and filter code:

note the "extension -> application", otherwise your filter is
waiting for another extension that never arrives.

I would also suggest that you make your component
ServiceScope.PROTOTYPE so every application gets its own instance
of the filter.

Let me know if this helps.

Carlos.

El 28/8/18 a las 19:09, Nhut Thai Le
escribió:

Hello,

I'm using aries-jax-rs-whiteboard to
host by REST service and I want to use a
ContainerRequestFilter to check for authentication token.
However, although the filter is registered as an OSGI service,
it is not triggered or even instantiated. Here is my REST api
and filter code: