3 Replies Latest reply on Mar 17, 2015 4:52 AM by tom joy

    Remote connection to Teiid Server fails

    Aswath Khan 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.114.10.34:31000. Reason: Connection refused: connect

       

       

       

      The java code used is,

         

        conn = null;

                  String url = "jdbc:teiid:Unisure_Data@mm://10.114.10.34:31000;";

                  String driver = "org.teiid.jdbc.TeiidDriver";

                  try{

                   //Driver myDriver = new org.teiid.jdbc.TeiidDriver();

                   //DriverManager.registerDriver( myDriver );

                      Class.forName(driver).newInstance();

                      conn = DriverManager.getConnection(url,"user","user");

       

       

       

       

       

      The Teiid Server version is 8.3 Final & Jboss is 7.1.1 Final.

       

      Also, There are no firewall in between.

       

      Let me know if any pointers to fix this.