Skip to content

Instantly share code, notes, and snippets.

@murphysean
Created August 27, 2014 02:25
Show Gist options
  • Save murphysean/7d59cfc69c9b0e2a4be5 to your computer and use it in GitHub Desktop.
Save murphysean/7d59cfc69c9b0e2a4be5 to your computer and use it in GitHub Desktop.
SQLite Resource Template
<Context>
<Resource
name="jdbc/example"
auth="Container"
driverClassName="org.sqlite.JDBC"
initialSize="0"
maxActive="15"
maxIdle="3"
minIdle="0"
maxWait="-1"
validationQuery="SELECT 1"
connectionInitSqls="PRAGMA foreign_keys = ON"
testOnBorrow="true"
removeAbandoned="true"
removeAbandonedTimeout="60"
username="username"
password="password"
type="javax.sql.DataSource"
url="jdbc:sqlite:/path/to/sqlite/file/example.db"/>
</Context>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment