Package org.teiid.net.socket

Examples of org.teiid.net.socket.SocketServerConnectionFactory


    Properties p = new Properties();
    String url = new TeiidURL(addr.getHostName(), listener.getPort(), clientSecure).getAppServerURL();
    p.setProperty(TeiidURL.CONNECTION.SERVER_URL, url);
    p.setProperty(TeiidURL.CONNECTION.DISCOVERY_STRATEGY, UrlServerDiscovery.class.getName());
    if (sscf == null) {
      sscf = new SocketServerConnectionFactory();
      sscf.initialize(socketConfig);
    }
    return sscf.getConnection(p);
  }
View Full Code Here


    String url = teiidUrl.getAppServerURL();
    p.setProperty(TeiidURL.CONNECTION.SERVER_URL, url);
    p.setProperty(TeiidURL.CONNECTION.DISCOVERY_STRATEGY, UrlServerDiscovery.class.getName());
    p.setProperty(TeiidURL.CONNECTION.AUTO_FAILOVER, Boolean.TRUE.toString());
    if (sscf == null) {
      sscf = new SocketServerConnectionFactory();
      sscf.initialize(socketConfig);
    }
    return sscf.getConnection(p);
  }
View Full Code Here

TOP

Related Classes of org.teiid.net.socket.SocketServerConnectionFactory

Copyright © 2018 www.massapicom. 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.