It's not a secret anymore!
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
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: 42959
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?
I agree. Here's the link:
subject: Tomcat Realm
It's not a secret anymore!