tomcat7 - Can you set different JDBC Realms for different web apps in Tomcat 7? -


i have implemented mysql server jdbcrealm authentication in tomcat 7. can't figure out if it's possible use different schemas or tables different web apps. in essence, define different jdbcrealms different web apps. way can have different user credential schemas/tables separate web apps. know can simulated roles in tomcat. hoping find way make web apps portable associated schemas. have no idea how achieved, have no code post. either code or better, topic investigate further helpful.

you have configure realm inside context of application. way, if have multiple applications deployed same instance of tomcat, each of them have own realm. also, encapsulating authentication/authorization details in application context file makes application more portable , easier deploy.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -