Skip to content

Instantly share code, notes, and snippets.

@childnode
Created May 10, 2016 10:36
Show Gist options
  • Save childnode/dc9036e80c9c25af35ea1688bd7e41ae to your computer and use it in GitHub Desktop.
Save childnode/dc9036e80c9c25af35ea1688bd7e41ae to your computer and use it in GitHub Desktop.
jboss.hsqldb connection strings / configuration xml
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource jndi-name="java:jboss/datasources/myapp-ds"
pool-name="myapp-ds" enabled="true" jta="true" use-java-context="true">
<connection-url>url>jdbc:hsqldb:file:d:\myapp</connection-url>
<driver>hsqldb</driver>
<pool>
<prefill>false</prefill>
<use-strict-min>false</use-strict-min>
<flush-strategy>FailingConnectionOnly</flush-strategy>
</pool>
<security>
<user-name>sa</user-name>
<password></password>
</security>
</datasource>
</datasources>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.org/ironjacamar/schema http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource jndi-name="java:jboss/datasources/myapp-ds"
pool-name="myapp-ds" enabled="true" jta="true" use-java-context="true">
<connection-url>jdbc:hsqldb:mem:myapp</connection-url>
<driver>hsqldb</driver>
<pool>
<prefill>false</prefill>
<use-strict-min>false</use-strict-min>
<flush-strategy>FailingConnectionOnly</flush-strategy>
</pool>
<security>
<user-name>sa</user-name>
<password></password>
</security>
</datasource>
</datasources>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment