Skip to content

Commit f58f462

Browse files
committed
Review fixes
1 parent 6584e7b commit f58f462

File tree

1 file changed

+5
-4
lines changed
  • java/IceGrid/locatorDiscovery/client/src/main/java/com/example/icegrid/greeter/client

1 file changed

+5
-4
lines changed

java/IceGrid/locatorDiscovery/client/src/main/java/com/example/icegrid/greeter/client/Client.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,13 @@
44

55
import com.example.visitorcenter.GreeterPrx;
66
import com.zeroc.Ice.Communicator;
7-
import com.zeroc.Ice.LocatorPrx;
8-
import com.zeroc.Ice.Util;
9-
import com.zeroc.Ice.Properties;
107
import com.zeroc.Ice.InitializationData;
8+
import com.zeroc.Ice.Properties;
9+
import com.zeroc.Ice.Util;
1110
import com.zeroc.IceLocatorDiscovery.PluginFactory;
1211

12+
import java.util.Collections;
13+
1314
class Client {
1415
public static void main(String[] args) {
1516
// Configure the communicator to load the IceDiscovery plug-in during initialization. This plug-in installs a
@@ -21,7 +22,7 @@ public static void main(String[] args) {
2122
initData.properties = new Properties(args);
2223

2324
// Create an Ice communicator. We'll use this communicator to create proxies and manage outgoing connections.
24-
try (Communicator communicator = Util.initialize(args)) {
25+
try (Communicator communicator = Util.initialize(initData)) {
2526
// Create a proxy to the Greeter object hosted by the server. "greeter" is a stringified proxy with no
2627
// addressing information, also known as a well-known proxy. It's specified by the <object> element in the
2728
// IceGrid XML file. The IceGrid registry resolves this well-known proxy and returns the actual address

0 commit comments

Comments
 (0)