Examples of ConnectionProxy


Examples of org.activemq.ra.jms.ConnectionProxy

     * @throws JMSException
     */
    private Connection createConnection(ActiveMQConnectionRequestInfo info) throws JMSException {
        try {
            if( info.isUseInboundSessionEnabled() ) {
                return new ConnectionProxy();
            }
            return (Connection) manager.allocateConnection(factory, info);
        }
        catch (ResourceException e) {
            // Throw the root cause if it was a JMSException..
View Full Code Here

Examples of org.castor.jdo.drivers.ConnectionProxy

       
        // if connection is not wrapped by a proxy yet, create one now
        if (!useProxies) {
            ClassLoader loader = _connection.getClass().getClassLoader();
            Class < ? > [] interfaces = new Class < ? > [] {Connection.class};
            InvocationHandler handler = new ConnectionProxy(_connection, getClass().getName());
            _connection = (Connection) Proxy.newProxyInstance(loader, interfaces, handler);
        }
    }
View Full Code Here

Examples of railo.runtime.db.driver.ConnectionProxy

  }

  public static Connection getConnection(String connStr, String user, String pass) throws SQLException {
    try {
      //return DriverManager.getConnection(dsn, user, pass);
      return new ConnectionProxy(new StateFactory(), DriverManager.getConnection(connStr, user, pass));
        }
        catch (SQLException e) {
   
          if(connStr.indexOf('?')!=-1) {
                connStr=connStr+"&user="+user+"&password="+pass;
          //return DriverManager.getConnection(connStr);
                return new ConnectionProxy(new StateFactory(), DriverManager.getConnection(connStr));
            }
          throw e;
        }
  }
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.