From 5dba698b8393bf714adfefcb4fe6f7dff16fa840 Mon Sep 17 00:00:00 2001 From: Jacques Le Roux Date: Sun, 23 Jun 2013 11:02:41 +0000 Subject: [PATCH] No functional changes while working on OFBIZ-4794 * Organize imports * Fix wrong comments git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1495807 13f79535-47bb-0310-9956-ffa450edef68 --- .../ofbiz/base/container/NamingServiceContainer.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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 ;