• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Using global datasource in web-app DataSourceRealm  RSS feed

 
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a DataSource for a connection pool defined at the tomcat level (tomcat/conf/context.xml). In the context.xml configuration of one of my web-apps I have an authentication DataSourceRealm defined and I'd like it to use the global datasource to do the authentication, but that datasource is not bound in the web-app context and so it throws an error. I know I can move the realm configuration from the webapp to the conf/server.xml config, but I dont want it used for all my webapps; just one in particular. The way I see I have two options: create a separate virtual host (service) in conf/server.xml just for this one web-app; or just use a JDBCRealm instead. Are there other options?

thanks
 
Is that a spider in your hair? Here, threaten it with this tiny ad:
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!