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

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


         List<CommonConnDef> connDefs = null;

         CommonSecurityImpl secImpl = new CommonSecurityImpl("", "", true);
         CommonPoolImpl poolImpl = new CommonPoolImpl(0, 10, Defaults.PREFILL, Defaults.USE_STRICT_MIN,
               Defaults.FLUSH_STRATEGY);
         CommonXaPoolImpl xaPoolImpl = new CommonXaPoolImpl(0, 10, Defaults.PREFILL, Defaults.USE_STRICT_MIN,
               Defaults.FLUSH_STRATEGY, Defaults.IS_SAME_RM_OVERRIDE, Defaults.INTERLEAVING,
               Defaults.PAD_XID, Defaults.WRAP_XA_RESOURCE, Defaults.NO_TX_SEPARATE_POOL);

         if (connector.getVersion() != Version.V_10)
         {
View Full Code Here


         Boolean prefill, Boolean useStrictMin,
         FlushStrategy flushStrategy, Boolean isSameRmOverride, Boolean interleaving,
         Boolean padXid, Boolean wrapXaResource,
         Boolean noTxSeparatePool) throws Exception
   {
      xaPool = new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy,
            isSameRmOverride, interleaving, padXid,
            wrapXaResource, noTxSeparatePool);
      return this;
   }
View Full Code Here

        final boolean interleaving = getBooleanIfSetOrGetDefault(dataSourceNode, INTERLIVING, false);
        final boolean noTxSeparatePool = getBooleanIfSetOrGetDefault(dataSourceNode, NOTXSEPARATEPOOL, false);
        final boolean padXid = getBooleanIfSetOrGetDefault(dataSourceNode, PAD_XID, false);
        final boolean isSameRmOverride = getBooleanIfSetOrGetDefault(dataSourceNode, SAME_RM_OVERRIDE, false);
        final boolean wrapXaDataSource = getBooleanIfSetOrGetDefault(dataSourceNode, WRAP_XA_DATASOURCE, false);
        final CommonXaPool xaPool = new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, isSameRmOverride,
                interleaving, padXid, wrapXaDataSource, noTxSeparatePool);

        final String username = getStringIfSetOrGetDefault(dataSourceNode, USERNAME, null);
        final String password = getStringIfSetOrGetDefault(dataSourceNode, PASSWORD, null);
        final String securityDomain = getStringIfSetOrGetDefault(dataSourceNode, SECURITY_DOMAIN, null);
View Full Code Here

         {
            case END_ELEMENT : {
               if (XaDataSource.Tag.forName(reader.getLocalName()) == XaDataSource.Tag.XA_POOL)
               {

                  return new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy,
                                              isSameRmOverrideValue, interleaving, padXid,
                                              wrapXaDataSource, noTxSeparatePool);

               }
               else
View Full Code Here

                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 (XaDataSource.Tag.forName(reader.getLocalName()) == XaDataSource.Tag.XA_POOL)
               {

                  return new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy,
                                              isSameRmOverride, interleaving, padXid,
                                              wrapXaDataSource, noTxSeparatePool);

               }
               else
View Full Code Here

         {
            case END_ELEMENT : {
               if (XaDataSource.Tag.forName(reader.getLocalName()) == XaDataSource.Tag.XA_POOL)
               {

                  return new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, isSameRmOverrideValue,
                                              interleaving, padXid, wrapXaDataSource, noTxSeparatePool);

               }
               else
               {
View Full Code Here

         {
            case END_ELEMENT : {
               if (XaDataSource.Tag.forName(reader.getLocalName()) == XaDataSource.Tag.XA_POOL)
               {

                  return new CommonXaPoolImpl(minPoolSize, maxPoolSize, prefill, useStrictMin, flushStrategy,
                                              isSameRmOverride, interleaving, padXid,
                                              wrapXaDataSource, noTxSeparatePool);

               }
               else
View Full Code Here

TOP

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

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.