It's not a secret anymore!
The moose likes Servlets and the fly likes Filter Security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Filter Security" Watch "Filter Security" New topic

Filter Security

Paul Croarkin
Ranch Hand

Joined: Sep 30, 2004
Posts: 106
We have a Filter where we would like to do some logging to the database. The datasource pool is protected via declarative security and we get permission errors in the Filter because of this. In a servlet, we would get around this by setting the <run-as> role on the servlet in web.xml. There does not seem to be a way to do this with a Filter.

Thanks,<br /> <br />Paul Croarkin<br />SCEA 5, SCWCD, SCJP
Have you checked out Aspose?
subject: Filter Security
It's not a secret anymore!