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 ?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With