diff options
Diffstat (limited to 'java/demo/Ice/value/Client.java')
-rw-r--r-- | java/demo/Ice/value/Client.java | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/java/demo/Ice/value/Client.java b/java/demo/Ice/value/Client.java index b2809d6ed3d..3ef39e8a35b 100644 --- a/java/demo/Ice/value/Client.java +++ b/java/demo/Ice/value/Client.java @@ -27,16 +27,7 @@ public class Client extends Ice.Application public int run(String[] args) { - Ice.Properties properties = communicator().getProperties(); - final String refProperty = "Value.Initial"; - String ref = properties.getProperty(refProperty); - if(ref.length() == 0) - { - System.err.println("property `" + refProperty + "' not set"); - return 1; - } - - Ice.ObjectPrx base = communicator().stringToProxy(ref); + Ice.ObjectPrx base = communicator().propertyToProxy("Value.Initial"); InitialPrx initial = InitialPrxHelper.checkedCast(base); if(initial == null) { |