Quantcast
Channel: GlassFish Related Items on Java.net
Viewing all articles
Browse latest Browse all 1091

How to obtain ExtHttpService from OSGI registry

$
0
0

Hi

I'm developing a WAB application where I want to register Servlet Filters in BundleActivator.start() method. I'm getting null references when I try to locate ExtHttpService:

ServiceReference sRef = bc.getServiceReference(ExtHttpService.class.getName());

However, the HttpService reference is correctly bound, but it doesn't allows filter registration.

Thanks in advance.

- Cristian


Viewing all articles
Browse latest Browse all 1091

Trending Articles