Properties in web.xml

2015-11-18 Thread Lars-Fredrik Smedberg
Hi! I have a possible use-case where I need to have different configurations in the web.xml depending on the environment deployed to. In the first test environment I cannot enforce any security constraints, in the other test environments and in production I would of course like to run with securit

Re: Properties in web.xml

2015-11-18 Thread Romain Manni-Bucau
Hi tomcat external web.xml (in conf//... typically) is a good one but then if you want a really dynamic solution you will need some code A filter looks good to stay portable but an Authenticator - tomcat API for higher level filters - would allow you to reuse existing authenticators (delegate patt

Re: Properties in web.xml

2015-11-18 Thread Lars-Fredrik Smedberg
Thanks Romain Guess I will go for the filter solution as Anatole (and you) suggests... but it would be nice to learn more about the Authenticator Tomcat API, do you have any pointers? The services are also exposed using JAX-WS so if I go for the JAX-RS filter I would need a JAX-WS handler as well

Re: Properties in web.xml

2015-11-18 Thread Romain Manni-Bucau
2015-11-18 9:00 GMT-08:00 Lars-Fredrik Smedberg : > Thanks Romain > > Guess I will go for the filter solution as Anatole (and you) suggests... > but it would be nice to learn more about the Authenticator Tomcat API, do > you have any pointers? > Yep: https://tomcat.apache.org/tomcat-7.0-doc/api/o