tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Frei <stefan.a.f...@gmail.com>
Subject Same realm for three different countries
Date Mon, 02 Dec 2013 19:23:03 GMT
Hello There


tomcat 7.0.42

debian

I have the same webapplication responsible for providing services fro
three different countries.

Therefore 3 slightly different database schemes exist on my mysql instance.

one for ch(switzerland), one for de(germany) and one for at(austria).

now my auth-realm which extends RealmBase should be able to decide to
which schema to connect to, depending on the requested url.

for example requests to webapp.ch should use the table users in schema ch.

how am i able to read out httprequest or session in the realm to
identify for which country the request is destined?

Cheers Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message