Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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 The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat Realm" Watch "Tomcat Realm" New topic

Tomcat Realm

Naseem Khan
Ranch Hand

Joined: Apr 25, 2005
Posts: 809
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.


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

Joined: Mar 22, 2005
Posts: 42954
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?
Have you tried LearnNowOnline?
subject: Tomcat Realm