aspose file tools
The moose likes Tomcat and the fly likes Tomcat Realm Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Products » Tomcat
Reply 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: 35250
    
    7
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?


Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Realm
 
Similar Threads
Tomcat 5.5.0/Datasource Realm
Database realm in OC4J
struts and jndi problem
question about tomcat JDBC realm.
Copying One node values from one xml to another xml