tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: configuring a combined realm
Date Tue, 01 Apr 2014 16:01:14 GMT
On 01/04/2014 13:15, Francesco Viscomi wrote:
> I'm unable to understand what's wrong with this configuration:

You need to read the Realm documentation more carefully.

> context.xml file
> ===============================================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <Context antiJARLocking="true" path="/SitoAziendale">
> 
> 
>     <Resource name="jdbc/PoolConnessioni" auth="Container"
> type="javax.sql.DataSource"
>         maxActive="100" maxIdle="30" maxWait="10000"
>         username="utentedb" password="utentedb"
> driverClassName="com.mysql.jdbc.Driver"
> 
> url="jdbc:mysql://localhost:3306/timesheet?zeroDateTimeBehavior=convertToNull"/>
> 
> 
> 
>     <Realm className="org.apache.catalina.realm.DataSourceRealm"
>         dataSourceName="jdbc/PoolConnessioni"
>         userTable="Dipendente" userNameCol="username" userCredCol="password"
>         userRoleTable="ruoliUtente" roleNameCol="nomeRuolo"/>
> 
> 
> </Context>

Take a look at the localDataSource attribute of the DataSourceRealm.

Mark

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


Mime
View raw message