Tomcat 4.1 Issue

E

Ed

Trying to connect to two different databases and utilizing the password
protection in my application using similar code below:

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:eek:dbc:Test"
connectionName="anything"
connectionPassword="anything"
digest="SHA"
userTable="Users" userNameCol="UserName"
userCredCol="UserPassword"
userRoleTable="Users" roleNameCol="RoleTomcat" />

<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99"
driverName="sun.jdbc.odbc.JdbcOdbcDriver"
connectionURL="jdbc:eek:dbc:Test2"
connectionName="anything"
connectionPassword="anything"
digest="SHA"
userTable="Users" userNameCol="UserName"
userCredCol="UserPassword"
userRoleTable="Users" roleNameCol="RoleTomcat" />

When I use the above code it only authenticates against the first database
via the ODBC connection Test and not Test2.

Essentially what I want to do is to declare more then one connectionURL
because all the other information is the same. Is this possible or am I on
the wrong track?

Thanks for any help!

Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,051
Latest member
CarleyMcCr

Latest Threads

Top