diff options
Diffstat (limited to 'java/demo/IceBox/hello/Client.java')
-rw-r--r-- | java/demo/IceBox/hello/Client.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/java/demo/IceBox/hello/Client.java b/java/demo/IceBox/hello/Client.java index c793b966758..da9b372364a 100644 --- a/java/demo/IceBox/hello/Client.java +++ b/java/demo/IceBox/hello/Client.java @@ -30,17 +30,8 @@ public class Client extends Ice.Application public int run(String[] args) { - Ice.Properties properties = communicator().getProperties(); - final String refProperty = "Hello.Proxy"; - String ref = properties.getProperty(refProperty); - if(ref.length() == 0) - { - System.err.println("property `" + refProperty + "' not set"); - return 1; - } - HelloPrx twoway = HelloPrxHelper.checkedCast( - communicator().stringToProxy(ref).ice_twoway().ice_timeout(-1).ice_secure(false)); + communicator().propertyToProxy("Hello.Proxy").ice_twoway().ice_timeout(-1).ice_secure(false)); if(twoway == null) { System.err.println("invalid object reference"); |