Package org.jboss.metadata

Examples of org.jboss.metadata.ConfigurationMetaData


/*      */   }
/*      */
/*      */   private StatelessSessionContainer createStatelessSessionContainer(SessionMetaData bean, DeploymentUnit unit)
/*      */     throws Exception
/*      */   {
/*  680 */     ConfigurationMetaData conf = bean.getContainerConfiguration();
/*      */
/*  682 */     StatelessSessionContainer container = new StatelessSessionContainer();
/*  683 */     int transType = bean.isContainerManagedTx() ? 2 : 1;
/*  684 */     initializeContainer(container, conf, bean, transType, unit);
/*  685 */     if ((bean.getHome() != null) || (bean.getServiceEndpoint() != null))
View Full Code Here


/*      */   }
/*      */
/*      */   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;
/*      */   }
View Full Code Here

/*      */   }
/*      */
/*      */   private EntityContainer createEntityContainer(BeanMetaData bean, DeploymentUnit unit)
/*      */     throws Exception
/*      */   {
/*  730 */     ConfigurationMetaData conf = bean.getContainerConfiguration();
/*      */
/*  732 */     EntityContainer container = new EntityContainer();
/*  733 */     int transType = 2;
/*  734 */     initializeContainer(container, conf, bean, transType, unit);
/*  735 */     if (bean.getHome() != null)
/*      */     {
/*  737 */       createProxyFactories(bean, container);
/*      */     }
/*      */
/*  740 */     ClassLoader cl = unit.getClassLoader();
/*  741 */     container.setInstanceCache(createInstanceCache(conf, cl));
/*  742 */     container.setInstancePool(createInstancePool(conf, cl));
/*      */
/*  744 */     boolean reentrant = ((EntityMetaData)bean).isReentrant();
/*  745 */     BeanLockManager lockMgr = createBeanLockManager(container, reentrant, conf.getLockClass(), cl);
/*  746 */     container.setLockManager(lockMgr);
/*      */
/*  749 */     if (((EntityMetaData)bean).isBMP())
/*      */     {
/*  751 */       Class pmClass = cl.loadClass(conf.getPersistenceManager());
/*  752 */       EntityPersistenceManager pm = (EntityPersistenceManager)pmClass.newInstance();
/*  753 */       container.setPersistenceManager(pm);
/*      */     }
/*      */     else
/*      */     {
/*  758 */       CMPPersistenceManager persistenceManager = new CMPPersistenceManager();
/*      */
/*  762 */       Class pmClass = cl.loadClass(conf.getPersistenceManager());
/*  763 */       EntityPersistenceStore pm = (EntityPersistenceStore)pmClass.newInstance();
/*  764 */       persistenceManager.setPersistenceStore(pm);
/*      */
/*  766 */       container.setPersistenceManager(persistenceManager);
/*      */     }
View Full Code Here

/*  86 */       this.store.setContainer(c);
/*     */     }
/*     */
/*  89 */     if (this.con != null)
/*     */     {
/*  91 */       ConfigurationMetaData configuration = this.con.getBeanMetaData().getContainerConfiguration();
/*  92 */       this.ejbStoreForClean = configuration.isEjbStoreForClean();
/*     */     }
/*     */   }
View Full Code Here

/*     */   public void create()
/*     */     throws Exception
/*     */   {
/*     */     try
/*     */     {
/*  97 */       ConfigurationMetaData configuration = this.container.getBeanMetaData().getContainerConfiguration();
/*  98 */       this.commitOption = configuration.getCommitOption();
/*  99 */       this.optionDRefreshRate = configuration.getOptionDRefreshRate();
/*     */     }
/*     */     catch (Exception e)
/*     */     {
/* 103 */       this.log.warn(e.getMessage());
/*     */     }
View Full Code Here

/*     */
/*     */   protected void unableToPassivateDueToCtxLock(EnterpriseContext ctx, boolean passivateAfterCommit)
/*     */   {
/* 161 */     EntityEnterpriseContext ectx = (EntityEnterpriseContext)ctx;
/* 162 */     ectx.setPassivateAfterCommit(passivateAfterCommit);
/* 163 */     ConfigurationMetaData config = this.m_container.getBeanMetaData().getContainerConfiguration();
/* 164 */     if ((!config.isStoreNotFlushed()) && (ectx.hasTxSynchronization()))
/*     */     {
/* 166 */       ectx.setTxAssociation(GlobalTxEntityMap.PREVENT_SYNC);
/*     */     }
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.metadata.ConfigurationMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.