Skip to content

Instantly share code, notes, and snippets.

@fjunior87
Last active February 4, 2018 17:17
Show Gist options
  • Save fjunior87/39bc6fc07c7b043e6d2aaa0a6dadbbb7 to your computer and use it in GitHub Desktop.
Save fjunior87/39bc6fc07c7b043e6d2aaa0a6dadbbb7 to your computer and use it in GitHub Desktop.
Carbon WSO2 Datasource config file
<datasources-configuration>
<datasources>
<datasource>
<name>MySQL</name>
<description>My DataSource</description>
<jndiConfig>
<name>jdbc/MySQL</name>
</jndiConfig>
<definition type="RDBMS">
<configuration>
<url>jdbc:mysql://localhost:3306/db</url>
<username>root</username>
<password>root</password>
<driverClassName>com.mysql.jdbc.Driver</driverClassName>
<maxActive>50</maxActive>
<maxWait>60000</maxWait>
<testOnBorrow>true</testOnBorrow>
<validationQuery>SELECT 1</validationQuery>
<validationInterval>30000</validationInterval>
<defaultAutoCommit>false</defaultAutoCommit>
</configuration>
</definition>
</datasource>
</datasources>
</datasources-configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment