diff options
Diffstat (limited to 'java/demo/IcePack/hello/Server.java')
-rw-r--r-- | java/demo/IcePack/hello/Server.java | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/java/demo/IcePack/hello/Server.java b/java/demo/IcePack/hello/Server.java index b93391d9125..1ab34cda561 100644 --- a/java/demo/IcePack/hello/Server.java +++ b/java/demo/IcePack/hello/Server.java @@ -13,13 +13,9 @@ public class Server extends Ice.Application run(String[] args) { Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Hello"); - String id = communicator().getProperties().getProperty("Identity"); - - Ice.Object object = new HelloFactoryI(); - adapter.add(object, Ice.Util.stringToIdentity(id)); + adapter.add(new HelloFactoryI(), Ice.Util.stringToIdentity(id)); adapter.activate(); - communicator().waitForShutdown(); return 0; } |