1 // **********************************************************************
3 // Copyright (c) 2003-2011 ZeroC, Inc. All rights reserved.
5 // This copy of Ice is licensed to you under the terms described in the
6 // ICE_LICENSE file included in this distribution.
8 // **********************************************************************
10 public class Client
extends Ice
.Application
12 class ShutdownHook
extends Thread
19 communicator().destroy();
21 catch(Ice
.LocalException ex
)
33 System
.err
.println("Usage: " + appName() + " [file]");
38 // Since this is an interactive demo we want to clear the
39 // Application installed interrupt callback and install our
42 setInterruptHook(new ShutdownHook());
44 return RunParser
.runParser(appName(), args
, communicator());
50 Client app
= new Client();
51 int status
= app
.main("demo.Database.library.Client", args
, "config.client");