"EJB3PersistenceManagerFactoryRegistry", PersistenceManagerFactoryRegistry.class);
pmFactoryRegistry.getFactories().put(BlockingPersistenceManagerFactory.REGISTRY_BIND_NAME,
BlockingPersistenceManagerFactory.class);
// Add the Force Passivation Cache
CacheFactoryRegistry cacheFactoryRegistry = Ejb3RegistrarLocator.locateRegistrar().lookup(
"EJB3CacheFactoryRegistry", CacheFactoryRegistry.class);
String forcePassivationCacheRegistryName = ForceEventsCacheFactory.REGISTRY_BIND_NAME;
cacheFactoryRegistry.getFactories().put(forcePassivationCacheRegistryName, ForceEventsCacheFactory.class);
log.info("Added " + forcePassivationCacheRegistryName);
// Deploy the test SFSB
Class<?> ejbImplClass = MyStatefulBean.class;
log.info("Deploying SFSB: " + ejbImplClass.getName());