Skip to content

Instantly share code, notes, and snippets.

@wombat
Created April 17, 2013 15:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wombat/5405124 to your computer and use it in GitHub Desktop.
Save wombat/5405124 to your computer and use it in GitHub Desktop.
DataSource in standalone.xml
<datasource jta="true" jndi-name="java:jboss/datasources/TweetCamp" pool-name="TweetCampDS" enabled="true" use-java-context="true" use-ccm="true">
<connection-url>jdbc:mysql://localhost:3306/TweetCamp</connection-url>
<driver>mysql</driver>
<pool>
<min-pool-size>10</min-pool-size>
<max-pool-size>100</max-pool-size>
<prefill>true</prefill>
<use-strict-min>false</use-strict-min>
<flush-strategy>FailingConnectionOnly</flush-strategy>
</pool>
<security>
<user-name>TweetCamp</user-name>
<password>TweetCamp</password>
</security>
</datasource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment