Object o = lookup( JdoFactory.ROLE, "continuum" );
assertEquals( MemoryJdoFactory.class.getName(), o.getClass().getName() );
MemoryJdoFactory jdoFactory = (MemoryJdoFactory) o;
// jdoFactory.setPersistenceManagerFactoryClass( "org.jpox.PersistenceManagerFactoryImpl" );
//
// jdoFactory.setDriverName( "org.hsqldb.jdbcDriver" );
String url = "jdbc:hsqldb:mem:" + getClass().getName() + "." + getName();
jdoFactory.setUrl( url );
jdoFactory.reconfigure();
// jdoFactory.setUserName( "sa" );
//
// jdoFactory.setPassword( "" );
//
// jdoFactory.setProperty( "org.jpox.transactionIsolation", "READ_UNCOMMITTED" );
//
// jdoFactory.setProperty( "org.jpox.poid.transactionIsolation", "READ_UNCOMMITTED" );
//
// jdoFactory.setProperty( "org.jpox.autoCreateTables", "true" );
// ----------------------------------------------------------------------
// Check the configuration
// ----------------------------------------------------------------------
PersistenceManagerFactory pmf = jdoFactory.getPersistenceManagerFactory();
assertNotNull( pmf );
assertEquals( url, pmf.getConnectionURL() );
PersistenceManager pm = pmf.getPersistenceManager();
pm.close();
// ----------------------------------------------------------------------
//
// ----------------------------------------------------------------------
Properties properties = jdoFactory.getProperties();
for ( Map.Entry entry : properties.entrySet() )
{
System.setProperty( (String) entry.getKey(), (String) entry.getValue() );
}