The queries tomcat uses are hardcoded. Given the way JDBC Realms are
implemented on Tomcat you've only got two choices:
1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query
you want it to use.
2. Write your own request interceptor from scratch.
Have a look at the source
Thanks and have a good day
Barney Hamish a écrit :
The queries tomcat uses are hardcoded. Given the way JDBC Realms are
implemented on Tomcat you've only got two choices:
1. Modify the existing org.apache.tomcat.request.JDBCRealm to use the query
you want it to use.
2. Write your own
RAYMOND Romain wrote:
Hello,
I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys
depending on others parameters than user login row ...
is it clear, and anybody has links or docs about this ?
yeah thanks it is a good idea which is an ideal solution for my
application
Christian Froehler a écrit :
RAYMOND Romain wrote:
Hello,
I would like to implement RealmJDBC to get userrole from my DB,
but I have to find the role (and so the associated table's row) from
foreign keys