[teiid-commits] teiid SVN: r2509 - branches/7.1.x/client/src/main/java/org/teiid/net/socket.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Tue Aug 31 14:24:01 EDT 2010


Author: shawkins
Date: 2010-08-31 14:24:00 -0400 (Tue, 31 Aug 2010)
New Revision: 2509

Modified:
   branches/7.1.x/client/src/main/java/org/teiid/net/socket/SocketServerConnection.java
Log:
TEIID-1211 the hostinfo needs resolved prior to connecting

Modified: branches/7.1.x/client/src/main/java/org/teiid/net/socket/SocketServerConnection.java
===================================================================
--- branches/7.1.x/client/src/main/java/org/teiid/net/socket/SocketServerConnection.java	2010-08-31 17:55:27 UTC (rev 2508)
+++ branches/7.1.x/client/src/main/java/org/teiid/net/socket/SocketServerConnection.java	2010-08-31 18:24:00 UTC (rev 2509)
@@ -28,6 +28,7 @@
 import java.io.IOException;
 import java.lang.reflect.Method;
 import java.lang.reflect.Proxy;
+import java.net.InetSocketAddress;
 import java.net.UnknownHostException;
 import java.util.ArrayList;
 import java.util.HashSet;
@@ -117,6 +118,9 @@
 
 			Exception ex = null;
 			try {
+				if (!hostInfo.isResolved()) {
+					hostInfo = new HostInfo(hostInfo.getHostName(), new InetSocketAddress(hostInfo.getInetAddress(), hostInfo.getPortNumber()));
+				}
 				ILogon newLogon = connect(hostInfo);
 				if (this.logonResult == null) {
 			        try {



More information about the teiid-commits mailing list