• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Junilu Lacar
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar

javax.servlet.Filter and HttpService

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
While it is easy to publish existing servlets via HttpService is there any portable way how to re-use existing Filter implementations?

We have custom Authorization and Authentization filters that are stacked on each other.

---

What about Listeners? ServletContext*Listener Session*Listener are user quite often.

Thanks
 
author
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yep you can use the WAB (Web Application Bundle or WAR+Bundle) support that was added in the 4.2 enterprise spec release [1] to support all the servlet 2.5 and JSP 2.1 specifications. The eclipse gemini project [2] has support for this specification and I've certainly used filters with this.

There's even a chapter dedicated to web applications and services in our book which should allow you to try this out for your self with some canned examples.

Regards,

Dave

[1] http://www.osgi.org/Release4/Download
[2] http://www.eclipse.org/gemini/web/
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!