Issue http://kenai.com/jira/browse/HENGSIN-3 , Property file wrongly created.

Apply patch from Carlos.
This commit is contained in:
Heng Sin Low 2010-08-17 17:58:48 +08:00
parent 0b8363851a
commit 494221df94
1 changed files with 1 additions and 2 deletions

View File

@ -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=")));