JDBC Realm is used for authentication against a database.
We use it to protect a directory from access, unless you are
authenticated.
It allows you to keep all your credentials in a database instead of in a
flat file somewhere.
JDBC Realm has a couple of problems, for those of you using it.
1) It has to change pretty radically between 3.2.1 and 3.3.1. It looks
like some of the
code in 3.2.1 is never called.
2) It is single threaded - worse yet, its synchronized. In a web
environment this can make your
performance take a bit of a hit. Only one person can authenticate at a
time.
3) It doesn't do any pooling of databases - each time that you go to the
database, its reconnecting to the
database. That is a heavy cost... One of the reasons why it was
synchronized was because of the lack of
database pool handling.
But as an example of the basics required to build an Authentication module
- its absolutely great.
-Tom
mikhail malamud wrote:
> Hello -
> What is the purpose of a jdbc realm. Configuring it into server.xml
> seems rather easy but what is the practical usage? Can anyone show how
> he/she uses jdbc realm. Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]