Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JNDI and Tomcat?

 
Sloan Bowman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have been reading the JBoss docs and have found the reference to adding the resource-ref tag in my jboss-web.xml file to link my datasources etc.. with tomcat. My question is when I write my classes do I use lookups on the jndi-name specified in the jboss-web.xml or the web.xml file. I don't see how it makes it possible to write once and deploy anywhere if you have to re-code your servlets or DAO's to use the new JNDI
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!