When is the tag that I added in context.xml read?

In context.xml of Tomcat I added the following tag:

  <Resource name="jdbc/MyDatasource" 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" /> 

When is the next tag read? Reading when I start the server?

0
source share
1 answer

This configuration is read when the application is deployed. If you enable automatic deployment, Tomcat will deploy your webapp at startup.

+1
source

Source: https://habr.com/ru/post/920204/


All Articles