summaryrefslogtreecommitdiff
path: root/java/test/Glacier2/router/Client.java
blob: e7fd31e01cd9ca02a7c695b29976014abb2a6c65 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// **********************************************************************
//
// Copyright (c) 2003-2006 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

public class Client
{
    public static void
    main(String[] args)
    {
	//
	// We must disable connection warnings, because we attempt to
	// ping the router before session establishment, as well as
	// after session destruction. Both will cause a
	// ConnectionLostException.
	//
	Ice.StringSeqHolder argsH = new Ice.StringSeqHolder(args);
	Ice.Properties properties = Ice.Util.getDefaultProperties(argsH);
	properties.setProperty("Ice.Warn.Connections", "0");

        CallbackClient app = new CallbackClient();
        int status = app.main("Client", argsH.value);
	System.gc();
        System.exit(status);
    }
}