Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

difference between context.xml and server.xml?

what is the difference between context.xml of Tomcat and server.xml of Tomcat ? If I want to add a tag like :

    <Resource name="jdbc/MyDs" auth="Container" type="javax.sql.DataSource"
     driverClassName="org.apache.derby.jdbc.ClientDriver"
     url="jdbc:derby://localhost:1527/my_database;create=true"
     username="me" password="me" maxActive="20" maxIdle="10" maxWait="-1" />

where should I add it ?

like image 565
saplingPro Avatar asked Jul 19 '12 11:07

saplingPro


1 Answers

The server.xml is used for server and context.xml is for application that runs on that server. There may be several context.xml files (per application) on a server but only one server.xml.

like image 83
hcg Avatar answered Oct 06 '22 01:10

hcg