I'm wanting to configure a database connection. I've got my
configurations stored in the META-INF/context.xml file, but because I'm
not deploying my application as a WAR, the context.xml is ignored.
I can copy my application's context.xml and place it in the
tomcat/conf/context.xml and it works. I can also place the database
connection in the tomcat/conf/Catalina/localhost/ROOT.xml and it works.
My question is, which one should I be using? I see examples of both
types of configuration files. With some of the "off-the-shelf"
applications we use, I see it in the ROOT.xml. But I'm reading a lot
where people are using the context.xml. I'm using Tomcat7 and really
can't find anything that says one file is better than the other. The
only thing it looks like is that the ROOT.xml is strictly for that
particular application container, whereas the context.xml seems more
global. If I'm only running one application, does it really matter?
I've got it working in either case, just more-less curious.
-JA-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org