diff --git a/framework/base/src/org/ofbiz/base/container/NamingServiceContainer.java b/framework/base/src/org/ofbiz/base/container/NamingServiceContainer.java index 4c780a3099..ea07b766da 100644 --- a/framework/base/src/org/ofbiz/base/container/NamingServiceContainer.java +++ b/framework/base/src/org/ofbiz/base/container/NamingServiceContainer.java @@ -19,10 +19,10 @@ package org.ofbiz.base.container; import java.net.UnknownHostException; -import java.rmi.registry.Registry; -import java.rmi.registry.LocateRegistry; -import java.rmi.RemoteException; import java.rmi.NoSuchObjectException; +import java.rmi.RemoteException; +import java.rmi.registry.LocateRegistry; +import java.rmi.registry.Registry; import java.rmi.server.UnicastRemoteObject; import org.ofbiz.base.util.RMIExtendedSocketFactory; @@ -52,7 +52,8 @@ public class NamingServiceContainer implements Container { ContainerConfig.Container cfg = ContainerConfig.getContainer(name, configFileLocation); - // get the telnet-port + // get the naming (JNDI) port + ContainerConfig.Container.Property port = cfg.getProperty("port"); if (port.value != null) { try { @@ -62,7 +63,7 @@ public class NamingServiceContainer implements Container { } } - // get the telnet-host + // get the naming (JNDI) server ContainerConfig.Container.Property host = cfg.getProperty("host"); if (host != null && host.value != null) { this.namingHost = host.value ;