mcf.setConnectionURL(connectionURL); mcf.setDriverClass(driverClass); mcf.setUserName(userName);
if (hsql) { mcf.setConnectionURL("jdbc:hsqldb:mem:test"); mcf.setDriverClass("org.hsqldb.jdbcDriver"); mcf.setUserName("sa"); } else {  mcf.setConnectionURL("jdbc:mysql: mcf.setDriverClass("com.mysql.jdbc.Driver"); mcf.setTransactionIsolation("TRANSACTION_READ_COMMITTED"); mcf.setUserName("root");  }
   private void startManagedConnectionFactory(ObjectName on,                                              String connectionURL,                                              String driverClass,                                              String userName) throws Exception   {      LocalManagedConnectionFactory mcf = new LocalManagedConnectionFactory();      mcf.setConnectionURL(connectionURL);      mcf.setDriverClass(driverClass);      mcf.setUserName(userName);      ManagedConnectionFactoryJMXWrapper mbean = new ManagedConnectionFactoryJMXWrapper(mcf);      mbeanServer.registerMBean(mbean, on);      mbeanServer.invoke(on, "start", new Object[0], new String[0]);      log.debug("started " + on);   }