From 494221df943f2c9944ff4ae73e29c64fff62fda9 Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 17 Aug 2010 17:58:48 +0800 Subject: [PATCH] Issue http://kenai.com/jira/browse/HENGSIN-3 , Property file wrongly created. Apply patch from Carlos. --- base/src/org/compiere/db/CConnection.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/base/src/org/compiere/db/CConnection.java b/base/src/org/compiere/db/CConnection.java index 2fce4ebecd..0058aff66e 100644 --- a/base/src/org/compiere/db/CConnection.java +++ b/base/src/org/compiere/db/CConnection.java @@ -20,7 +20,6 @@ import java.io.Serializable; import java.sql.Connection; import java.sql.DatabaseMetaData; import java.sql.SQLException; -import java.util.Hashtable; import java.util.logging.Level; import javax.naming.InitialContext; @@ -993,7 +992,7 @@ public class CConnection implements Serializable, Cloneable try { setName (attributes.substring (attributes.indexOf ("name=") + 5, attributes.indexOf (",AppsHost="))); - setAppsHost (attributes.substring (attributes.indexOf ("AppsHost=") + 9, attributes.indexOf (",AppsPort="))); + setAppsHost (attributes.substring (attributes.indexOf ("AppsHost=") + 9, attributes.indexOf (",type="))); // setType (attributes.substring (attributes.indexOf ("type=")+5, attributes.indexOf (",DBhost="))); setDbHost (attributes.substring (attributes.indexOf ("DBhost=") + 7, attributes.indexOf (",DBport=")));