Tomcat and external MySQL datasource example

Add the DataSource Resource tag inside the Context tags of your context descriptor in the server.xml file located under <bamboo-installation-directory>/conf:


<Context .... >
<Resource name="jdbc/bamboo" auth="Container" type="javax.sql.DataSource"
        username="yourusername"
         password="yourpassword"
         driverClassName="com.mysql.jdbc.Driver"
         url="jdbc:mysql://localhost:3306/bamboo?autoReconnect=true"
         maxActive="100"
         maxIdle="7"
         validationQuery="Select 1" />
</Context>
Last modified on Jan 30, 2023

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.