summaryrefslogtreecommitdiff
path: root/java/test/IceGrid/simple/Server.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/test/IceGrid/simple/Server.java')
-rw-r--r--java/test/IceGrid/simple/Server.java30
1 files changed, 15 insertions, 15 deletions
diff --git a/java/test/IceGrid/simple/Server.java b/java/test/IceGrid/simple/Server.java
index 57120f60324..33556af6d0d 100644
--- a/java/test/IceGrid/simple/Server.java
+++ b/java/test/IceGrid/simple/Server.java
@@ -12,31 +12,31 @@ public class Server extends Ice.Application
public int
run(String[] args)
{
- Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
- argsH.value = communicator().getProperties().parseCommandLineOptions("TestAdapter", argsH.value);
+ Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
+ argsH.value = communicator().getProperties().parseCommandLineOptions("TestAdapter", argsH.value);
Ice.ObjectAdapter adapter = communicator().createObjectAdapter("TestAdapter");
Ice.Object object = new TestI(adapter);
adapter.add(object, communicator().stringToIdentity("test"));
- shutdownOnInterrupt();
- try
- {
- adapter.activate();
- }
- catch(Ice.ObjectAdapterDeactivatedException ex)
- {
- }
+ shutdownOnInterrupt();
+ try
+ {
+ adapter.activate();
+ }
+ catch(Ice.ObjectAdapterDeactivatedException ex)
+ {
+ }
communicator().waitForShutdown();
- defaultInterrupt();
+ defaultInterrupt();
return 0;
}
public static void
main(String[] args)
{
- Server server = new Server();
- int status = server.main("test.IceGrid.simple.Server", args);
- System.gc();
- System.exit(status);
+ Server server = new Server();
+ int status = server.main("test.IceGrid.simple.Server", args);
+ System.gc();
+ System.exit(status);
}
}