Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDBCRealm - different configuration for different deployed webapps

 
Adam Kronicki
Ranch Hand
Posts: 68
  • 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
Posts: 2847
46
 
Adam Kronicki
Ranch Hand
Posts: 68
  • 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
Posts: 2847
46
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic