Examples of WrappedConnection


Examples of org.apache.manifoldcf.core.jdbcpool.WrappedConnection

   */
  @Override
  public String check()
    throws ManifoldCFException {
    try {
      WrappedConnection tempConnection = JDBCConnectionFactory.getConnection(jdbcProvider, host, databaseName, userName, password);
      JDBCConnectionFactory.releaseConnection(tempConnection);
      return super.check();
    } catch (Throwable e) {
      if (Logging.connectors.isDebugEnabled()) {
        Logging.connectors.debug("Service interruption in check(): " + e.getMessage(), e);
View Full Code Here

Examples of org.apache.manifoldcf.core.jdbcpool.WrappedConnection

   */
  @Override
  public String check()
    throws ManifoldCFException {
    try {
      WrappedConnection tempConnection = JDBCConnectionFactory.getConnection(jdbcProvider, host, databaseName, userName, password);
      JDBCConnectionFactory.releaseConnection(tempConnection);
      return super.check();
    } catch (Throwable e) {
      if (Logging.connectors.isDebugEnabled()) {
        Logging.connectors.debug("Service interruption in check(): " + e.getMessage(), e);
View Full Code Here

Examples of org.jboss.resource.adapter.jdbc.WrappedConnection

      TestConnection tc = null;
      try
      {
         DataSource ds = (DataSource) new InitialContext().lookup("java:StatementTestsConnectionDS");
         Connection c = ds.getConnection();
         WrappedConnection wc = (WrappedConnection) c;
         Connection uc = wc.getUnderlyingConnection();
         tc = (TestConnection) Proxy.getInvocationHandler(uc);
         c.close();
         tc.setFail(true);
         int closeCount1 = tc.getClosedCount();
         c = ds.getConnection();
View Full Code Here

Examples of org.jboss.resource.adapter.jdbc.WrappedConnection

         DataSource ds = (DataSource) new InitialContext().lookup("java:NoTxStatementTestsConnectionDS");
         Connection c = ds.getConnection();
         try
         {
            c.setAutoCommit(false);
            WrappedConnection wc = (WrappedConnection) c;
            Connection uc = wc.getUnderlyingConnection();
            tc = (TestConnection) Proxy.getInvocationHandler(uc);

            try
            {
               c.nativeSQL("ERROR");
View Full Code Here

Examples of org.jboss.resource.adapter.jdbc.WrappedConnection

      {
         DataSource ds = (DataSource) new InitialContext().lookup("java:StatementTestsConnectionDS");
         Connection c = ds.getConnection();
         try
         {
            WrappedConnection wc = (WrappedConnection) c;
            Connection uc = wc.getUnderlyingConnection();
            tc = (TestConnection) Proxy.getInvocationHandler(uc);

            try
            {
               c.nativeSQL("ERROR");
View Full Code Here

Examples of org.jboss.resource.adapter.jdbc.WrappedConnection

      InitialContext ctx = new InitialContext();
      DataSource ds = (DataSource) ctx.lookup("java:/DefaultDS"); // FIXME
      Connection c = ds.getConnection();
      try
      {
         WrappedConnection wc = (WrappedConnection) c;
         return System.identityHashCode(wc.getUnderlyingConnection());
      }
      finally
      {
         c.close();
      }
View Full Code Here

Examples of sqlWrapper.WrappedConnection

    try
    {           
      if (keepAlive.booleanValue())
      {
                iv_logger.info("Instantiating wrapped connection.");
        iv_conn = new WrappedConnection(username,
            password,
            driverClassName,
            urlStr);
      }
      else
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.