diff options
author | Matthew Newhook <matthew@zeroc.com> | 2005-10-26 06:52:12 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2005-10-26 06:52:12 +0000 |
commit | 4bce0d66a7fbe259a7cce305bfd9eeafe1812d55 (patch) | |
tree | 2a34dde5f7a960b8dbe7bad0ec0b159a08327bec /java/demo | |
parent | Added C# implementation of IceBox. (diff) | |
download | ice-4bce0d66a7fbe259a7cce305bfd9eeafe1812d55.tar.bz2 ice-4bce0d66a7fbe259a7cce305bfd9eeafe1812d55.tar.xz ice-4bce0d66a7fbe259a7cce305bfd9eeafe1812d55.zip |
- Added handling of IceBox.InstanceName to the IceBox service manager.
- Use Hello.Proxy, not Hello.Hello in the IceBox demo.
- Remove shutdown() from IceBox hello demo.
Diffstat (limited to 'java/demo')
-rw-r--r-- | java/demo/IceBox/hello/Client.java | 2 | ||||
-rw-r--r-- | java/demo/IceBox/hello/Hello.ice | 1 | ||||
-rw-r--r-- | java/demo/IceBox/hello/HelloI.java | 7 | ||||
-rw-r--r-- | java/demo/IceBox/hello/config | 2 |
4 files changed, 2 insertions, 10 deletions
diff --git a/java/demo/IceBox/hello/Client.java b/java/demo/IceBox/hello/Client.java index c89be59d095..7a21ca205d5 100644 --- a/java/demo/IceBox/hello/Client.java +++ b/java/demo/IceBox/hello/Client.java @@ -31,7 +31,7 @@ public class Client extends Ice.Application run(String[] args) { Ice.Properties properties = communicator().getProperties(); - final String refProperty = "Hello.Hello"; + final String refProperty = "Hello.Proxy"; String ref = properties.getProperty(refProperty); if(ref.length() == 0) { diff --git a/java/demo/IceBox/hello/Hello.ice b/java/demo/IceBox/hello/Hello.ice index b3e16ef95a5..c80a9d9df23 100644 --- a/java/demo/IceBox/hello/Hello.ice +++ b/java/demo/IceBox/hello/Hello.ice @@ -16,7 +16,6 @@ module Demo interface Hello { void sayHello(); - void shutdown(); }; }; diff --git a/java/demo/IceBox/hello/HelloI.java b/java/demo/IceBox/hello/HelloI.java index e4dea49e024..14737d3c46a 100644 --- a/java/demo/IceBox/hello/HelloI.java +++ b/java/demo/IceBox/hello/HelloI.java @@ -16,11 +16,4 @@ public class HelloI extends _HelloDisp { System.out.println("Hello World!"); } - - public void - shutdown(Ice.Current current) - { - System.out.println("Shutting down..."); - current.adapter.getCommunicator().shutdown(); - } } diff --git a/java/demo/IceBox/hello/config b/java/demo/IceBox/hello/config index 4ef27f0fb88..8695ae7f761 100644 --- a/java/demo/IceBox/hello/config +++ b/java/demo/IceBox/hello/config @@ -14,7 +14,7 @@ IceBox.Service.Hello=HelloServiceI # The client reads this property to create the reference to the # "hello" object in the server. # -Hello.Hello=hello:tcp -p 10000:udp -p 10000 +Hello.Proxy=hello:tcp -p 10000:udp -p 10000 # # The server creates one single object adapter with the name of |