Examples of returnConnection()


Examples of com.esri.gpt.framework.sql.ConnectionBroker.returnConnection()

    if (!isCatalogMetaAllowed()) {
      return;
    }

    ConnectionBroker connectionBroker = context.getConnectionBroker();
    ManagedConnection managedConnection = connectionBroker.returnConnection("");
    Connection conn = managedConnection.getJdbcConnection();

    boolean firstRecord = true;

    for (IFeedRecord record : records) {
View Full Code Here

Examples of com.esri.gpt.framework.sql.ConnectionBroker.returnConnection()

     
      ConnectionBroker connectionBroker = new ConnectionBroker();
      PreparedStatement st = null;
      ResultSet rs = null;
      try {
        ManagedConnection managedConnection = connectionBroker.returnConnection("");
        Connection connection = managedConnection.getJdbcConnection();
        st = connection.prepareStatement("SELECT COUNT(*) JOB_TYPE FROM GPT_HARVESTING_JOBS_COMPLETED WHERE HARVEST_ID=?");
        st.setString(1, record.getUuid());
       
        rs = st.executeQuery();
View Full Code Here

Examples of com.esri.gpt.framework.sql.ConnectionBroker.returnConnection()

    throw new SearchException("Could not get a Connection Broker so as"
        + " to make a" + " connection to the repository.");
  }

 
  ManagedConnection managedConnection = connectionBroker.returnConnection("");
  Connection connection = managedConnection.getJdbcConnection();
  if (connection == null) {
    throw new SearchException("Got null connection to repository "
        + "for save search");
  }
View Full Code Here

Examples of org.apache.camel.component.sjms.jms.ConnectionResource.returnConnection()

        ConnectionResource pool = new AMQConnectionResource("tcp://localhost:33333", 1);
        assertNotNull(pool);
        Connection connection = pool.borrowConnection();
        assertNotNull(connection);
        assertNotNull(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
        pool.returnConnection(connection);
        Connection connection2 = pool.borrowConnection();
        assertNotNull(connection2);
    }

    @Test
View Full Code Here

Examples of org.apache.camel.component.sjms.jms.ConnectionResource.returnConnection()

        ConnectionResource pool = new AMQConnectionResource("tcp://localhost:33333", 1);
        assertNotNull(pool);
        Connection connection = pool.borrowConnection();
        assertNotNull(connection);
        assertNotNull(connection.createSession(false, Session.AUTO_ACKNOWLEDGE));
        pool.returnConnection(connection);
        Connection connection2 = pool.borrowConnection();
        assertNotNull(connection2);
    }

    @Test
View Full Code Here

Examples of org.fto.jthink.jdbc.ConnectionPool.returnConnection()

        Connection conn = (Connection)openedConnsHM.get(connId);
        /* 如果采用了连接池管理连接 */
        if(useConnectionPool(connId)){
          ConnectionPool connPool = ConnectionPool.getConnectionPool(connId);
          /* 将活动连接返回到连接池 */
          connPool.returnConnection(conn);
        }else{
          /* 释放连接 */
          conn.close();
        }
      }
View Full Code Here

Examples of org.fto.jthink.jdbc.ConnectionPool.returnConnection()

        String connId = (String)keysIT.next();
        Connection conn = (Connection)openedConnsHM.get(connId);
        if(useConnectionPool(connId)){
          ConnectionPool connPool = ConnectionPool.getConnectionPool(connId);
          /* 将活动连接返回到连接池 */
          connPool.returnConnection(conn);
        }else{
          /* 释放连接 */
          conn.close();
        }
      }
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.pool.api.Pool.returnConnection()

         kill = true;
      }

      try
      {
         localStrategy.returnConnection(cl, kill);
      }
      catch (ResourceException re)
      {
         // We can receive notification of an error on the connection
         // before it has been assigned to the pool. Reduce the noise for
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.pool.api.Pool.returnConnection()

         kill = true;
      }

      try
      {
         localStrategy.returnConnection(cl, kill);
      }
      catch (ResourceException re)
      {
         // We can receive notification of an error on the connection
         // before it has been assigned to the pool. Reduce the noise for
View Full Code Here

Examples of org.jboss.jca.core.connectionmanager.pool.api.Pool.returnConnection()

         kill = true;
      }

      try
      {
         localStrategy.returnConnection(cl, kill);
      }
      catch (ResourceException re)
      {
         // We can receive notification of an error on the connection
         // before it has been assigned to the pool. Reduce the noise for
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.