- Connection dialog not working when embedded server is turn on
This commit is contained in:
Heng Sin Low 2009-07-21 07:49:49 +00:00
parent 5c76bd07f6
commit 675c4d3ff5
3 changed files with 4 additions and 3 deletions

View File

@ -111,7 +111,7 @@ public class CConnection implements Serializable, Cloneable
{
//hengsin, zero setup for webstart client
CConnection cc = null;
if (apps_host != null && Adempiere.isWebStartClient())
if (apps_host != null && Adempiere.isWebStartClient() && !CConnection.isServerEmbedded())
{
cc = new CConnection(apps_host);
cc.setConnectionProfile(CConnection.PROFILE_LAN);

View File

@ -425,7 +425,7 @@ public class CConnectionDialog extends CDialog implements ActionListener
// bTestApps.setToolTipText(m_cc.getRmiUri());
//cbOverwrite.setVisible(m_cc.isAppsServerOK(false));
boolean rw = !m_cc.isAppsServerOK(false);
boolean rw = CConnection.isServerEmbedded() ? true : !m_cc.isAppsServerOK(false);
//
dbTypeLabel.setReadWrite(rw);
dbTypeField.setReadWrite(rw);

View File

@ -411,7 +411,8 @@ public final class ALogin extends CDialog
} // processWindowEvent
private void validateAppServer() {
m_cc.testAppsServer();
if (!CConnection.isServerEmbedded())
m_cc.testAppsServer();
}
private void connectToDatabase() {