Skip to content

Instantly share code, notes, and snippets.

@mozammel
Created December 24, 2014 10:15
Show Gist options
  • Select an option

  • Save mozammel/b0b3d5b1792db54b610c to your computer and use it in GitHub Desktop.

Select an option

Save mozammel/b0b3d5b1792db54b610c to your computer and use it in GitHub Desktop.
jndi resource in tomcat context for database
<Resource name="jdbc/spring" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000" username="dbuser"
password="dbpass" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/dbname" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment