Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat Realm

 
Naseem Khan
Ranch Hand
Posts: 809
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic