Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jrichardsz/6963382 to your computer and use it in GitHub Desktop.
Save jrichardsz/6963382 to your computer and use it in GitHub Desktop.
Datasource Tomcat en el archivo context.xml
<Resource
name="jdbc/EmpresaDS"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/empresa"
username="myuser" password="mypass"
validationQuery="select 1"
maxActive="100"
maxIdle="4"
/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment