Package org.apache.geronimo.jee.connector

Examples of org.apache.geronimo.jee.connector.Singlepool


        partitionedPool.setMinSize(new Integer(0));
        partitionedPool.setPartitionByConnectionrequestinfo(empty);
        partitionedPool.setPartitionBySubject(empty);
        partitionedPool.setSelectOneAssumeMatch(empty);
        connectionManager.setPartitionedPool(partitionedPool);
        Singlepool singlePool = connectorFactory.createSinglepool();
        singlePool.setBlockingTimeoutMilliseconds(new Integer(0));
        singlePool.setIdleTimeoutMinutes(new Integer(0));
        singlePool.setMatchAll(empty);
        singlePool.setMatchOne(empty);
        singlePool.setMaxSize(new Integer(0));
        singlePool.setMinSize(new Integer(0));
        singlePool.setSelectOneAssumeMatch(empty);
        connectionManager.setPartitionedPool(partitionedPool);
        connectionManager.setSinglePool(singlePool);
        Xatransaction xaTransaction = connectorFactory.createXatransaction();
        xaTransaction.setThreadCaching(empty);
        xaTransaction.setTransactionCaching(empty);
View Full Code Here


      else if (poolTypeIndex == 2) {
    manager
      .setNoTransaction(new org.apache.geronimo.jee.connector.Empty());
      }

      Singlepool pool = new Singlepool();
      pool.setMinSize(text[0].getText().trim().length() == 0 ? 0
        : new Integer(text[0].getText()));
      pool.setMaxSize(text[1].getText().trim().length() == 0 ? 10
        : new Integer(text[1].getText()));
      pool.setBlockingTimeoutMilliseconds(text[2].getText().trim()
        .length() == 0 ? null : new Integer(text[2].getText()));
      pool
        .setIdleTimeoutMinutes(text[3].getText().trim().length() == 0 ? null
          : new Integer(text[3].getText()));
      pool.setMatchOne(new org.apache.geronimo.jee.connector.Empty());
      manager.setSinglePool(pool);
      return manager;
  }
View Full Code Here

        } else if (connManager.getLocalTransaction() != null) {
      combo.select(1);
        } else if (connManager.getNoTransaction() != null) {
      combo.select(2);
        }
        Singlepool singlepool = connManager.getSinglePool();
        if (singlepool != null) {
      text[0].setText(singlepool.getMaxSize() == null ? ""
        : singlepool.getMaxSize().toString());
      text[1].setText(singlepool.getMinSize() == null ? ""
        : singlepool.getMinSize().toString());
      text[2].setText(singlepool
        .getBlockingTimeoutMilliseconds() == null ? ""
        : singlepool.getBlockingTimeoutMilliseconds()
          .toString());
      text[3]
        .setText(singlepool.getIdleTimeoutMinutes() == null ? ""
          : singlepool.getIdleTimeoutMinutes()
            .toString());
        }

    } catch (Exception e) {
        e.printStackTrace();
View Full Code Here

TOP

Related Classes of org.apache.geronimo.jee.connector.Singlepool

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.