aspose file tools*
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 Spring in Action this week in the Spring 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: 42276
    
  64
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat Realm