File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBCRealm - different configuration for different deployed webapps

 
Adam Kronicki
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I have been using Tomcat's JDBCRealm authentication for my webapps. However, now I need to deploy a new webapp on the same tomcat. This new webapp also needs JDBCRealm authentication but the database is different then the one that is alredy configured. Is it possible to use different databases for different web applications deployed on tomcat? I cannot find any solution here. Can anyone help?
 
Tim Moores
Bartender
Pie
Posts: 2496
10
 
Adam Kronicki
Ranch Hand
Posts: 68
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, that was quick! As far as I understand I need to cut out the realm tag from tomcat's conf/ server.xml file, and place it in the context tag in each of my app META-INF/context.xml files. Am I right?
 
Tim Moores
Bartender
Pie
Posts: 2496
10
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There, or in the conf/Catalina/localhost directory - wherever it makes more sense to keep the <Context> information.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic