/* */ }
/* */
/* */ private StatefulSessionContainer createStatefulSessionContainer(SessionMetaData bean, DeploymentUnit unit)
/* */ throws Exception
/* */ {
/* 700 */ ConfigurationMetaData conf = bean.getContainerConfiguration();
/* */
/* 702 */ StatefulSessionContainer container = new StatefulSessionContainer();
/* 703 */ int transType = bean.isContainerManagedTx() ? 2 : 1;
/* 704 */ initializeContainer(container, conf, bean, transType, unit);
/* 705 */ if ((bean.getHome() != null) || (bean.getServiceEndpoint() != null))
/* */ {
/* 707 */ createProxyFactories(bean, container);
/* */ }
/* */
/* 710 */ ClassLoader cl = unit.getClassLoader();
/* 711 */ container.setInstanceCache(createInstanceCache(conf, cl));
/* */
/* 713 */ StatefulSessionInstancePool ip = new StatefulSessionInstancePool();
/* 714 */ ip.importXml(conf.getContainerPoolConf());
/* 715 */ container.setInstancePool(ip);
/* */
/* 717 */ container.setPersistenceManager((StatefulSessionPersistenceManager)cl.loadClass(conf.getPersistenceManager()).newInstance());
/* */
/* 719 */ container.setLockManager(createBeanLockManager(container, false, conf.getLockClass(), cl));
/* */
/* 721 */ return container;
/* */ }