HashMap<String, Class<? extends PoolFactory>> poolFactories = new HashMap<String, Class<? extends PoolFactory>>();
poolFactories.put("ThreadlocalPool", ThreadlocalPoolFactory.class);
poolFactories.put("StrictMaxPool", StrictMaxPoolFactory.class);
poolRegistry.setFactories(poolFactories);
setPoolFactoryRegistry(poolRegistry);
CacheFactoryRegistry cacheRegistry = new CacheFactoryRegistry();
HashMap<String, Class<? extends Ejb3CacheFactory>> cacheFactories = new HashMap<String, Class<? extends Ejb3CacheFactory>>();
cacheFactories.put("NoPassivationCache", NoPassivationCacheFactory.class);
cacheFactories.put("SimpleStatefulCache", SimpleStatefulCacheFactory.class);
cacheFactories.put("StatefulTreeCache", StatefulTreeCacheFactory.class);
cacheRegistry.setFactories(cacheFactories);
setCacheFactoryRegistry(cacheRegistry);
}