1 Reply Latest reply on Feb 27, 2013 3:47 PM by james_sutherland

    what is the purpose of connection pool timeout

      Currently in the Connection Pool code, after the wait timeout it assumes a connection is available, what happens if there are no connections available?
      what is the advantage and benefit of connection pool timeout?

      Code snippet from Connection Pool:

      try {
      wait(this.waitTimeout);// Notify is called when connections are released.
      } catch (InterruptedException exception) {
      throw ConcurrencyException.waitFailureOnClientSession(exception);

      int connectionSize = this.connectionsAvailable.size();
      // Always used the last connection to avoid shift list and to use "hot" connection.
      Accessor connection = this.connectionsAvailable.remove(connectionSize-1);