Examples of PoolImpl


Examples of org.jboss.ejb3.annotation.impl.PoolImpl

/*      */   {
/* 1404 */     if (enterpriseBean.getPoolConfig() != null)
/*      */     {
/* 1406 */       PoolConfigMetaData config = enterpriseBean.getPoolConfig();
/*      */
/* 1408 */       PoolImpl poolAnnotation = new PoolImpl();
/*      */
/* 1410 */       if ((config.getValue() != null) && (!config.getValue().trim().equals(""))) {
/* 1411 */         poolAnnotation.setValue(config.getValue());
/*      */       }
/*      */
/* 1414 */       if ((config.getValue() == null) || (config.getValue().trim().equals("")))
/*      */       {
/* 1417 */         poolAnnotation.setValue("ThreadlocalPool");
/*      */       }
/*      */
/* 1420 */       if (config.getMaxSize() != null) {
/* 1421 */         poolAnnotation.setMaxSize(config.getMaxSize().intValue());
/*      */       }
/* 1423 */       if (config.getTimeout() != null) {
/* 1424 */         poolAnnotation.setTimeout(config.getTimeout().intValue());
/*      */       }
/* 1426 */       addClassAnnotation(container, Pool.class, poolAnnotation);
/*      */     }
/*      */   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.PoolImpl

   {
      if (enterpriseBean.getPoolConfig() != null)
      {
         PoolConfigMetaData config = enterpriseBean.getPoolConfig();

         PoolImpl poolAnnotation = new PoolImpl();

         if (config.getValue() != null && !config.getValue().trim().equals(""))
            poolAnnotation.setValue(config.getValue());
        
         // EJBTHREE-1119
         if(config.getValue()==null || config.getValue().trim().equals(""))
         {
            // Set default implementation to Threadlocal
            poolAnnotation.setValue(PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL);
         }

         if (config.getMaxSize() != null)
            poolAnnotation.setMaxSize(config.getMaxSize());

         if (config.getTimeout() != null)
            poolAnnotation.setTimeout(config.getTimeout());

         addClassAnnotation(container, Pool.class, poolAnnotation);
      }
   }
View Full Code Here

Examples of org.jboss.ejb3.annotation.impl.PoolImpl

   {
      if (enterpriseBean.getPoolConfig() != null)
      {
         PoolConfigMetaData config = enterpriseBean.getPoolConfig();

         PoolImpl poolAnnotation = new PoolImpl();

         if (config.getValue() != null && !config.getValue().trim().equals(""))
            poolAnnotation.setValue(config.getValue());
        
         // EJBTHREE-1119
         if(config.getValue()==null || config.getValue().trim().equals(""))
         {
            // Set default implementation to Threadlocal
            poolAnnotation.setValue(PoolDefaults.POOL_IMPLEMENTATION_THREADLOCAL);
         }

         if (config.getMaxSize() != null)
            poolAnnotation.setMaxSize(config.getMaxSize());

         if (config.getTimeout() != null)
            poolAnnotation.setTimeout(config.getTimeout());

         addClassAnnotation(container, Pool.class, poolAnnotation);
      }
   }
View Full Code Here

Examples of org.jboss.fresh.pool.pool.impl.PoolImpl

    // create pool instance.
    // set factory

    try {

      PoolImpl pool = (PoolImpl) getServiceObject();

      if (pool != null) pool.stop();

      String fname = getFactoryName();
      ClassLoader cl = Thread.currentThread().getContextClassLoader();

      Class fc = cl.loadClass(fname);
      PoolFactory f = (PoolFactory) fc.newInstance();

      pool = new PoolImpl(poolname, f);
      pool.setMinSize(minsize);
      pool.setMaxSize(maxsize);
      pool.setNonBlocking(!isBlocking);
      pool.setTimeout(blockingTimeout); // why is it int ???

      pool.start();

      setServiceObject(pool);

      return pool;
View Full Code Here

Examples of org.jboss.fresh.pool.pool.impl.PoolImpl

    try {
      log.debug("doStop() called");
      super.doStop();
    } finally {
      try {
        PoolImpl pool = (PoolImpl) getServiceObject();
        log.info("pool: " + pool);
        if (pool != null) pool.stop();
      } catch (Exception ex) {
        log.error("Exception while stopping the pool: ", ex);
        throw new RuntimeException(ex.toString());
      }
    }
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.PoolImpl

         TransactionSupportEnum transSupport = TransactionSupportEnum.NoTransaction;
         List<AdminObject> adminObjects = null;
         List<ConnectionDefinition> connDefs = null;

         SecurityImpl secImpl = new SecurityImpl("", "", true);
         PoolImpl poolImpl = new PoolImpl(0, null, 10, Defaults.PREFILL, Defaults.USE_STRICT_MIN,
                                          Defaults.FLUSH_STRATEGY, null);
         XaPoolImpl xaPoolImpl = new XaPoolImpl(0, null, 10, Defaults.PREFILL, Defaults.USE_STRICT_MIN,
                                                Defaults.FLUSH_STRATEGY, null, Defaults.IS_SAME_RM_OVERRIDE,
                                                Defaults.INTERLEAVING,
                                                Defaults.PAD_XID, Defaults.WRAP_XA_RESOURCE,
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.PoolImpl

      if (transactionSupport == TransactionSupportEnum.XATransaction)
         pool = new XaPoolImpl(minPoolSize, null, maxPoolSize, prefill, Defaults.USE_STRICT_MIN,
            Defaults.FLUSH_STRATEGY, capacity, Defaults.IS_SAME_RM_OVERRIDE, interleaving, Defaults.PAD_XID,
            Defaults.WRAP_XA_RESOURCE, noTxSeparatePool);
      else
         pool = new PoolImpl(minPoolSize, null, maxPoolSize, prefill, Defaults.USE_STRICT_MIN,
                             Defaults.FLUSH_STRATEGY, capacity);
      this.noTxSeparatePool = noTxSeparatePool;
      this.setInterleaving(interleaving);
      return this;
   }
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.PoolImpl

        Pool pool;
        if (isXa) {
            pool = new XaPoolImpl(minPoolSize, initialPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy, capacity, isSameRM, interlivng, padXid, wrapXaResource, noTxSeparatePool);
        } else {
            pool = new PoolImpl(minPoolSize, initialPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy, capacity);
        }
        String securityDomain = ModelNodeUtil.getResolvedStringIfSetOrGetDefault(context, connDefModel, SECURITY_DOMAIN);
        String securityDomainAndApplication = ModelNodeUtil.getResolvedStringIfSetOrGetDefault(context, connDefModel, SECURITY_DOMAIN_AND_APPLICATION);

        boolean application = ModelNodeUtil.getBooleanIfSetOrGetDefault(context, connDefModel, APPLICATION);
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.PoolImpl

        if (transactionSupport == TransactionSupportEnum.XATransaction) {
            pool = new XaPoolImpl(minSize, Defaults.INITIAL_POOL_SIZE, maxSize, prefill, useStrictMin, flushStrategy, null,
                    Defaults.IS_SAME_RM_OVERRIDE, Defaults.INTERLEAVING, Defaults.PAD_XID, Defaults.WRAP_XA_RESOURCE, Defaults.NO_TX_SEPARATE_POOL);
            isXA = Boolean.TRUE;
        } else {
            pool = new PoolImpl(minSize, Defaults.INITIAL_POOL_SIZE, maxSize, prefill, useStrictMin, flushStrategy, null);
        }
        TimeOut timeOut = new TimeOutImpl(null, null, null, null, null) {
        };
        // <security>
        //   <application />
View Full Code Here

Examples of org.jboss.jca.common.metadata.common.PoolImpl

                pool = new XaPoolImpl(minPoolSize < 0 ? Defaults.MIN_POOL_SIZE : minPoolSize, Defaults.INITIAL_POOL_SIZE, maxPoolSize < 0 ? Defaults.MAX_POOL_SIZE : maxPoolSize,
                        Defaults.PREFILL, Defaults.USE_STRICT_MIN, Defaults.FLUSH_STRATEGY,
                        null, Defaults.IS_SAME_RM_OVERRIDE, Defaults.INTERLEAVING, Defaults.PAD_XID, Defaults.WRAP_XA_RESOURCE, Defaults.NO_TX_SEPARATE_POOL);
                isXA = Boolean.TRUE;
            } else {
                pool = new PoolImpl(minPoolSize < 0 ? Defaults.MIN_POOL_SIZE : minPoolSize, Defaults.INITIAL_POOL_SIZE, maxPoolSize < 0 ? Defaults.MAX_POOL_SIZE : maxPoolSize,
                        Defaults.PREFILL, Defaults.USE_STRICT_MIN, Defaults.FLUSH_STRATEGY, null);
            }

            TransactionSupportEnum transactionSupportValue = TransactionSupportEnum.NoTransaction;
            if (transactionSupport == TransactionSupport.TransactionSupportLevel.XATransaction) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.