I have a small CXF/REST/Spring/JDBC app that I've run on TomEE and Tomcat.  I 
define datasources and environment entries and retrieve those from the 
application code using JNDI interfaces.  This all works fine.

What confuses me is that whenever I read in various unrelated docs about 
setting and using JNDI entries, even in applications running in Tomcat, it says 
that I also have to put resource reference elements into my application's 
"web.xml" file.  I don't think I've EVER added those elements to a web.xml 
file, and I've defined and used JNDI resources in many applications, including 
the current one.

As I'm getting these resources through Spring, does that somehow make it 
unnecessary to add those elements?

When are they actually required?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to