Package org.jboss.jca.common.metadata.common

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


         {
            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.POOL)
               {

                  return new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy);

               }
               else
               {
                  if (CommonPool.Tag.forName(reader.getLocalName()) == CommonPool.Tag.UNKNOWN)
View Full Code Here


        }

        if (conDef.getPool() != null) {
            if (conDef.getPool() instanceof CommonPoolImpl) {
                streamWriter.writeStartElement(CommonConnDef.Tag.POOL.getLocalName());
                CommonPoolImpl pool = (CommonPoolImpl) conDef.getPool();
                writeCommonPool(streamWriter, pool);
                streamWriter.writeEndElement();
            } else if (conDef.getPool() instanceof CommonXaPoolImpl) {
                streamWriter.writeStartElement(CommonConnDef.Tag.XA_POOL.getLocalName());
                CommonXaPoolImpl pool = (CommonXaPoolImpl) conDef.getPool();
                writeCommonPool(streamWriter, pool);

                if (pool.isSameRmOverride() != null) {
                    streamWriter.writeStartElement(CommonXaPool.Tag.ISSAMERMOVERRIDEVALUE.getLocalName());
                    streamWriter.writeCharacters(pool.isSameRmOverride().toString());
                    streamWriter.writeEndElement();
                }

                if (pool.isInterleaving() != null) {
                    streamWriter.writeStartElement(CommonXaPool.Tag.INTERLEAVING.getLocalName());
                    streamWriter.writeCharacters(pool.isInterleaving().toString());
                    streamWriter.writeEndElement();
                }

                if (pool.isNoTxSeparatePool() != null) {
                    streamWriter.writeStartElement(CommonXaPool.Tag.NO_TX_SEPARATE_POOLS.getLocalName());
                    streamWriter.writeCharacters(pool.isNoTxSeparatePool().toString());
                    streamWriter.writeEndElement();
                }

                if (pool.isPadXid() != null) {
                    streamWriter.writeStartElement(CommonXaPool.Tag.PAD_XID.getLocalName());
                    streamWriter.writeCharacters(pool.isPadXid().toString());
                    streamWriter.writeEndElement();
                }

                if (pool.isWrapXaDataSource() != null) {
                    streamWriter.writeStartElement(CommonXaPool.Tag.WRAP_XA_RESOURCE.getLocalName());
                    streamWriter.writeCharacters(pool.isWrapXaDataSource().toString());
                    streamWriter.writeEndElement();
                }

                streamWriter.writeEndElement();
            }
View Full Code Here

         {
            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.POOL)
               {

                  return new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy);

               }
               else
               {
                  if (CommonPool.Tag.forName(reader.getLocalName()) == CommonPool.Tag.UNKNOWN)
View Full Code Here

         {
            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.POOL)
               {

                  return new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin);

               }
               else
               {
                  if (CommonPool.Tag.forName(reader.getLocalName()) == CommonPool.Tag.UNKNOWN)
View Full Code Here

    */
   public LegacyTxDataSourceImpl buildCommonPool(Integer minPoolSize, Integer maxPoolSize,
         Boolean prefill, Boolean useStrictMin,
         FlushStrategy flushStrategy) throws Exception
   {
      pool = new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy);
      return this;
   }
View Full Code Here

    * @throws Exception exception
    */
   public LegacyConnectionFactoryImp buildCommonPool(Integer minPoolSize, Integer maxPoolSize,
         Boolean prefill, Boolean noTxSeparatePool, Boolean interleaving) throws Exception
   {
      pool = new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, Defaults.USE_STRICT_MIN, Defaults.FLUSH_STRATEGY);
      this.noTxSeparatePool = noTxSeparatePool;
      this.interleaving = interleaving;
      return this;
   }
View Full Code Here

         {
            case END_ELEMENT : {
               if (DataSource.Tag.forName(reader.getLocalName()) == DataSource.Tag.POOL)
               {

                  return new CommonPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy);

               }
               else
               {
                  if (CommonPool.Tag.forName(reader.getLocalName()) == CommonPool.Tag.UNKNOWN)
View Full Code Here

TOP

Related Classes of org.jboss.jca.common.metadata.common.CommonPoolImpl

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.