tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luc DALLEMANE <ldallem...@alaloop.com>
Subject RE: JDBC authentication problem
Date Mon, 02 Feb 2015 11:11:16 GMT
Hi,

I tried to switch to DataSourceRealm but my problem is here again. 

After a while, the authentication is still impossible. Maybe i have missed something about
the DataSource in the doc but I'm able to login several times. It's only after about one hour
of inactivity.

The network admin looked the firewall config and told me the config was OK ...

So, if you have any idea, you're welcome !

Regards, Luc.
________________________________________
De : Luc DALLEMANE <ldallemane@alaloop.com>
Envoyé : vendredi 30 janvier 2015 15:39
À : Tomcat Users List
Objet : RE: JDBC authentication problem

Ok, I'm going to try this.

Hope this will help to solve my problem.

Regards Luc D.


-----Message d'origine-----
De : Christopher Schultz [mailto:chris@christopherschultz.net]
Envoyé : vendredi 30 janvier 2015 15:24
À : Tomcat Users List
Objet : Re: JDBC authentication problem

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Luc,

On 1/30/15 9:05 AM, Luc DALLEMANE wrote:
> Thanks for the reply, it is the JDBCRealm not the data source.

Your Resource configuration is therefore ignored.

The JDBCRealm should really not be used at all. Switch to DataSourceRealm. If you don't like
using your application's DataSource for authentication (some folks don't), then create a second
DataSource just for authentication.

The DataSourceRealm has some significant advantages, such as being able to use a configurable
pool of Connections, instead of a single Connection like JDBCRealm does. This improved performance
and allows for re-connections, etc. I think this will fix your immediate problem plus eliminate
some other problems down the line (like performance).


- -chris

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


Mime
View raw message