diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2006-11-24 17:29:58 +0000 |
commit | 1126cea5189d035934f98822078f2ae23d9739ec (patch) | |
tree | 759430bdf201db72abddcd9bb83bed6fb034a6d2 /java/demo/IceBox/hello/Client.java | |
parent | Code cleanup (diff) | |
download | ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.bz2 ice-1126cea5189d035934f98822078f2ae23d9739ec.tar.xz ice-1126cea5189d035934f98822078f2ae23d9739ec.zip |
Added propertyToProxy
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"); |