difference between context.xml and server.xml?

Viewed 13316

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 ?

3 Answers
Related