Examples of removeConnectionEventListener()


Examples of com.alibaba.druid.pool.DruidPooledConnection.removeConnectionEventListener()

        conn.createArrayOf("int", new Object[0]);
        conn.createStruct("int", new Object[0]);

        conn.addConnectionEventListener(null);
        conn.removeConnectionEventListener(null);
        conn.addStatementEventListener(null);
        conn.removeStatementEventListener(null);

        conn.close();
    }
View Full Code Here

Examples of com.atomikos.jdbc.XPooledConnection.removeConnectionEventListener()

            if ( tlc.usesConnection ( source ) ) {
                it.remove ();

            }
        }
        source.removeConnectionEventListener ( this );
        pool.putBack ( source );
    }

    /**
     * @see javax.sql.ConnectionEventListener#connectionErrorOccurred(javax.sql.ConnectionEvent)
View Full Code Here

Examples of javax.resource.spi.ManagedConnection.removeConnectionEventListener()

      catch (Throwable t)
      {
         log.debug("Exception destroying ManagedConnection " + cl, t);
      }

      mc.removeConnectionEventListener(cl);
   }
  
   private boolean shouldRemove()
   {     
      boolean remove = true;
View Full Code Here

Examples of javax.resource.spi.ManagedConnection.removeConnectionEventListener()

      catch (Throwable t)
      {
         log.debug("Exception destroying ManagedConnection " + cl, t);
      }

      mc.removeConnectionEventListener(cl);
   }

   /**
    * Should any connections be removed from the pool
    * @return True if connections should be removed; otherwise false
View Full Code Here

Examples of javax.resource.spi.ManagedConnection.removeConnectionEventListener()

      catch (Throwable t)
      {
         log.debug("Exception destroying ManagedConnection " + cl, t);
      }

      mc.removeConnectionEventListener(cl);
   }

   /**
    * Should any connections be removed from the pool
    * @return True if connections should be removed; otherwise false
View Full Code Here

Examples of javax.resource.spi.ManagedConnection.removeConnectionEventListener()

      catch (Throwable t)
      {
         log.debug("Exception destroying ManagedConnection " + cl, t);
      }

      mc.removeConnectionEventListener(cl);
   }
  
   private boolean shouldRemove()
   {     
      boolean remove = true;
View Full Code Here

Examples of javax.sql.PooledConnection.removeConnectionEventListener()

    /**
     * INTERNAL
     */
    public void connectionClosed(ConnectionEvent event) {
        PooledConnection pc = (PooledConnection) event.getSource();
        pc.removeConnectionEventListener(this);
        recycleConnection(pc);
    }

    /**
     * INTERNAL
 
View Full Code Here

Examples of javax.sql.PooledConnection.removeConnectionEventListener()

     */
    public synchronized void connectionErrorOccurred(ConnectionEvent event) {

        PooledConnection connection = (PooledConnection) event.getSource();

        connection.removeConnectionEventListener(this);
        this.connectionsInUse.remove(connection);
        this.sessionConnectionWrappers.remove(connection);
        logInfo(
            "Fatal exception occurred on pooled connection. Connection is removed from pool: ");
        logInfo(event.getSQLException());
View Full Code Here

Examples of javax.sql.PooledConnection.removeConnectionEventListener()

     * Closes the PooledConnection and stops listening for events from it.
     */
    public void destroyObject(Object key, Object obj) throws Exception {
        if (obj instanceof PooledConnectionAndInfo) {
            PooledConnection pc = ((PooledConnectionAndInfo)obj).getPooledConnection();
            pc.removeConnectionEventListener(this);
            pcMap.remove(pc);
            pc.close();
        }
    }

View Full Code Here

Examples of javax.sql.PooledConnection.removeConnectionEventListener()

            try {
                _pool.returnObject(info.getUserPassKey(), info);
            } catch (Exception e) {
                System.err.println("CLOSING DOWN CONNECTION AS IT COULD " +
                "NOT BE RETURNED TO THE POOL");
                pc.removeConnectionEventListener(this);
                try {
                    _pool.invalidateObject(info.getUserPassKey(), info);
                } catch (Exception e3) {
                    System.err.println("EXCEPTION WHILE DESTROYING OBJECT " +
                            info);
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.