diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2009-11-30 11:00:17 -0330 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2009-11-30 11:00:17 -0330 |
commit | 60276ae3101dfc1fa1bb7b7ee2d23cb474e9666d (patch) | |
tree | 29b7541fed602821c8d5ea7ec418eba18c423a24 /java/demo/Ice/async/Server.java | |
parent | 4387 - Commited IceGrid/Scanner.cpp doesn't compilce with VC9 (diff) | |
download | ice-60276ae3101dfc1fa1bb7b7ee2d23cb474e9666d.tar.bz2 ice-60276ae3101dfc1fa1bb7b7ee2d23cb474e9666d.tar.xz ice-60276ae3101dfc1fa1bb7b7ee2d23cb474e9666d.zip |
Changed demos to use new AMI API
Diffstat (limited to 'java/demo/Ice/async/Server.java')
-rw-r--r-- | java/demo/Ice/async/Server.java | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/java/demo/Ice/async/Server.java b/java/demo/Ice/async/Server.java index 696979091d7..84513854170 100644 --- a/java/demo/Ice/async/Server.java +++ b/java/demo/Ice/async/Server.java @@ -34,30 +34,7 @@ public class Server extends Ice.Application Ice.ObjectAdapter adapter = communicator().createObjectAdapter("Hello"); _workQueue = new WorkQueue(); - - final HelloI helloServant = new HelloI(_workQueue); - - Ice.ServantLocator servantLocator = new Ice.ServantLocator() - { - public Ice.Object locate(Ice.Current curr, Ice.LocalObjectHolder cookie) - { - return helloServant; - } - - public void finished(Ice.Current curr, Ice.Object servant, java.lang.Object cookie) - { - // nothing - } - - public void deactivate(String category) - { - System.err.println("deactivating servant locator"); - } - }; - - - adapter.addServantLocator(servantLocator, ""); - + adapter.add(new HelloI(_workQueue), communicator().stringToIdentity("hello")); _workQueue.start(); adapter.activate(); |