GeronimoConnectionManagerFactory connectionManagerFactory = new GeronimoConnectionManagerFactory();
connectionManagerFactory.setTransactionManager(transactionManager);
ConnectionManager connectionManager = connectionManagerFactory.create();
ManagedConnectionFactory managedConnectionFactory = new JdbcManagedConnectionFactory("org.hsqldb.jdbcDriver",
"jdbc:hsqldb:mem",
"sa",
"",
true);
DataSource dataSource = (DataSource) managedConnectionFactory.createConnectionFactory(connectionManager);
// todo... conections are not being released
// for (int i = 0; i < 100; i++) {
// System.out.println("Connection " + i);
verifyDatasource(dataSource);