1 2 Previous Next 18 Replies Latest reply on Mar 23, 2015 10:56 PM by tom joy

    Remote connection to Teiid Server fails

    tom joy Newbie

      When I try to connect to the the VDB remotely using the Java code, it fails with the below error.  I could able to connect locally using localhost, but it fails remotely.

           SEVERE: Could not create connection

      org.teiid.jdbc.TeiidSQLException: TEIID20020 Error establishing socket to host and port: 10.103.240.208:31000. Reason: Connection refused: connect



           The java used is :

      private static final String JDBC_URL = "jdbc:teiid:Book@mm://10.103.240.208:31000;version=1";

        public Connection getDriverConnection() throws Exception{

        Class.forName("org.teiid.jdbc.TeiidDriver");

        return DriverManager.getConnection(VDBtest.JDBC_URL,"user","user");

        }

       

      The standalone.xml of server is :

      <interfaces>

              <interface name="management">

                  <inet-address value="${jboss.bind.address.management:10.103.240.208}"/>

              </interface>

              <interface name="public">

                  <inet-address value="${jboss.bind.address:10.103.240.208}"/>

              </interface>

              <interface name="unsecure">

                  <inet-address value="${jboss.bind.address.unsecure:10.103.240.208}"/>

              </interface>

          </interfaces>

       





        1 2 Previous Next