* don't test or init datasource for wan profile

This commit is contained in:
Heng Sin Low 2007-02-27 05:04:44 +00:00
parent 1d69ec3afc
commit ada57fd26c
1 changed files with 15 additions and 11 deletions

View File

@ -1234,17 +1234,21 @@ public class CConnection implements Serializable
{
try
{
for (int i = 0; i < Database.DB_NAMES.length; i++)
{
if (Database.DB_NAMES[i].equals (m_type))
{
m_db = (AdempiereDatabase)Database.DB_CLASSES[i].
newInstance ();
break;
}
}
if (m_db != null) // test class loader ability
m_db.getDataSource(this);
for (int i = 0; i < Database.DB_NAMES.length; i++)
{
if (Database.DB_NAMES[i].equals (m_type))
{
m_db = (AdempiereDatabase)Database.DB_CLASSES[i].
newInstance ();
break;
}
}
//hengsin, don't test datasource for wan profile
if (!isRMIoverHTTP())
{
if (m_db != null) // test class loader ability
m_db.getDataSource(this);
}
}
catch (NoClassDefFoundError ee)
{