Skip to content

Instantly share code, notes, and snippets.

@AdamSaleh
Created March 24, 2015 16:31
Show Gist options
  • Select an option

  • Save AdamSaleh/f4a3686c01d390f650e9 to your computer and use it in GitHub Desktop.

Select an option

Save AdamSaleh/f4a3686c01d390f650e9 to your computer and use it in GitHub Desktop.
<subsystem xmlns="urn:jboss:domain:datasources:1.2">
<datasources>
<datasource jndi-name="java:jboss/datasources/ExampleDS" pool-name="ExampleDS" enabled="true" use-java-context="true">
<connection-url>jdbc:h2:mem:test;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE</connection-url>
<driver>h2</driver>
<security>
<user-name>sa</user-name>
<password>sa</password>
</security>
</datasource>
<datasource jndi-name="java:jboss/datasources/UnifiedPushDS" pool-name="UnifiedPushDS" enabled="true" use-ccm="false">
<connection-url>jdbc:mysql://localhost:3306/unifiedpush?useUnicode=true&amp;characterEncoding=UTF-8</connection-url>
<driver>mysqlup</driver>
<pool>
<max-pool-size>25</max-pool-size>
</pool>
<security>
<user-name>unifiedpushing</user-name>
<password>unifiedpushing</password>
</security>
<timeout>
<blocking-timeout-millis>5000</blocking-timeout-millis>
</timeout>
</datasource>
<drivers>
<driver name="h2" module="com.h2database.h2">
<xa-datasource-class>org.h2.jdbcx.JdbcDataSource</xa-datasource-class>
</driver>
<driver name="mysqlup" module="com.mysql.jdbc">
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment