A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Apr 25, 2005
Jan 08, 2007 06:49:00
I have set
<Realm className="org.apache.catalina.realm.JDBCRealm" debug="99" driverName="oracle.jdbc.driver.OracleDriver" connectionURL="jdbc:oracle:thin:@localhost:1521:XE" connectionName="scott" connectionPassword="tiger" userTable="users" userNameCol="user_name" userCredCol="user_pass" userRoleTable="user_roles" roleNameCol="role_name" digest="SHA"/>
Now, I want to insert record in one more table (say reports table). How do I configure this table in Realm.
One option is by simply getting connection from connection pool, but in that case, I have to configure in my <Resource> tag within <Context> tag.
Can I configure my new table in the Realm without looking jndi datasource.
Asking Smart Questions FAQ
How To Put Your Code In Code Tags
Joined: Mar 22, 2005
Jan 08, 2007 08:31:00
Realms have no facilities for inserting/updating/deleting records, or accessing tables other than the ones used for authentication.
You need to define the database as a DataSource as well; why wouldn't you want to do that?
Ping & DNS
- my free Android networking tools app
Don't get me started about those stupid
subject: Tomcat Realm
Tomcat 5.5.0/Datasource Realm
struts and jndi problem
question about tomcat JDBC realm.
Copying One node values from one xml to another xml
Database realm in OC4J
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014