wood burning stoves 2.0*
The moose likes Tomcat and the fly likes Tomcat Realm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Realm" Watch "Tomcat Realm" New topic
Author

Tomcat Realm

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
Hi,
I have set JDBC Realm in Tomcat container as:



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.

Thanks


Asking Smart Questions FAQ - How To Put Your Code In Code Tags
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39535
    
  27
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 - updated with new look and Ping home screen widget
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Realm
 
Similar Threads
Database realm in OC4J
Tomcat 5.5.0/Datasource Realm
Copying One node values from one xml to another xml
struts and jndi problem
question about tomcat JDBC realm.