• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Tomcat / JNDI / initial Context

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just finished writing a custom login module that I can deploy to my tomcat installation. I declared the datasource that the login module uses as a global resource in the server.xml and was trying to look it up in my login module when doing the Authentication / Authorisation stuff. The problem I had was that I couldn't find the datasource in the JNDI tree, I quickly realised this was because the login module was looking in the context for the web application and therefore I needed to create a link which I did it using a . So what I don't understand is why I needed to do this. Given that the login-module is actually part of the container rather than a specific web application why can it not see globally available resources. I just need a bit of clarification on this if anyone is willing to offer it up.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic