Skip to main content

OSGi Enabled Jersey Web Application and Servlet Filters.

1 reply [Last post]

Good day,

I hope I wont disturb you with my question.

I am writing this email regarding OSGi Enabled Web Applications and Servlet
Filters. It looks like no one uses it in a real world..
I couldn't find any example of using Servlet Filters in WAB files (now it's
Jersey based JAX-RS web service). How could it be done?

Other info:
Glassfish (newest, stable)
Maven for build and dependency.

Thank you for your time.
Best regards,

P.S. That's just for information: I am also trying to use OSGi blueprints
in my Jersey REST web service.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2005-03-30

Just use regular web.xml or annotations to mark your class as filter and everything else should be taken care of.