This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages 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: 2947
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: 2947
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