- Connection dialog not working when embedded server is turn on
This commit is contained in:
parent
5c76bd07f6
commit
675c4d3ff5
|
@ -111,7 +111,7 @@ public class CConnection implements Serializable, Cloneable
|
||||||
{
|
{
|
||||||
//hengsin, zero setup for webstart client
|
//hengsin, zero setup for webstart client
|
||||||
CConnection cc = null;
|
CConnection cc = null;
|
||||||
if (apps_host != null && Adempiere.isWebStartClient())
|
if (apps_host != null && Adempiere.isWebStartClient() && !CConnection.isServerEmbedded())
|
||||||
{
|
{
|
||||||
cc = new CConnection(apps_host);
|
cc = new CConnection(apps_host);
|
||||||
cc.setConnectionProfile(CConnection.PROFILE_LAN);
|
cc.setConnectionProfile(CConnection.PROFILE_LAN);
|
||||||
|
|
|
@ -425,7 +425,7 @@ public class CConnectionDialog extends CDialog implements ActionListener
|
||||||
// bTestApps.setToolTipText(m_cc.getRmiUri());
|
// bTestApps.setToolTipText(m_cc.getRmiUri());
|
||||||
|
|
||||||
//cbOverwrite.setVisible(m_cc.isAppsServerOK(false));
|
//cbOverwrite.setVisible(m_cc.isAppsServerOK(false));
|
||||||
boolean rw = !m_cc.isAppsServerOK(false);
|
boolean rw = CConnection.isServerEmbedded() ? true : !m_cc.isAppsServerOK(false);
|
||||||
//
|
//
|
||||||
dbTypeLabel.setReadWrite(rw);
|
dbTypeLabel.setReadWrite(rw);
|
||||||
dbTypeField.setReadWrite(rw);
|
dbTypeField.setReadWrite(rw);
|
||||||
|
|
|
@ -411,6 +411,7 @@ public final class ALogin extends CDialog
|
||||||
} // processWindowEvent
|
} // processWindowEvent
|
||||||
|
|
||||||
private void validateAppServer() {
|
private void validateAppServer() {
|
||||||
|
if (!CConnection.isServerEmbedded())
|
||||||
m_cc.testAppsServer();
|
m_cc.testAppsServer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue