File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes JNDI and Tomcat? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JNDI and Tomcat?" Watch "JNDI and Tomcat?" New topic
Author

JNDI and Tomcat?

Sloan Bowman
Ranch Hand

Joined: Jan 21, 2003
Posts: 107
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
 
Consider Paul's rocket mass heater.
 
subject: JNDI and Tomcat?
 
Similar Threads
how to configure java.net.URL outside of .war
Putting/retrieving objects in JNDI with JBoss
Installation of a Connection Pool Class on a Mac
confuse with web.xml in tomcat and jboss
How to write a deployable services in Spring like EJB jar?