TomEE HSQLDB in memory Datasource

Just add the following to your _tomee_/conf/tomee.xml file to get a hsqldb datasource with an in memory datasource which you can use as jta-datasource named exampleDS:

<Resource id=”exampleDS” type=”DataSource”>
JdbcDriver org.hsqldb.jdbcDriver
JdbcUrl jdbc:hsqldb:mem:exampledb;DB_CLOSE_DELAY=-1;
UserName sa
Password
JtaManaged true
</Resource>

Leave a Reply