File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed 
java/IceGrid/locatorDiscovery/client/src/main/java/com/example/icegrid/greeter/client Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 44
55import  com .example .visitorcenter .GreeterPrx ;
66import  com .zeroc .Ice .Communicator ;
7- import  com .zeroc .Ice .LocatorPrx ;
8- import  com .zeroc .Ice .Util ;
9- import  com .zeroc .Ice .Properties ;
107import  com .zeroc .Ice .InitializationData ;
8+ import  com .zeroc .Ice .Properties ;
9+ import  com .zeroc .Ice .Util ;
1110import  com .zeroc .IceLocatorDiscovery .PluginFactory ;
1211
12+ import  java .util .Collections ;
13+ 
1314class  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 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments