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 ' **********************************************************************
16 Inherits Ice
.Application
18 Public Overloads Overrides
Function run(ByVal args() As String) As Integer
19 If args
.Length
> 0 Then
20 Console
.Error.WriteLine(appName() & ": too many arguments")
24 Dim adapter
As Ice
.ObjectAdapter
= communicator().createObjectAdapter("Printer")
25 adapter
.add(New PrinterI
, communicator().stringToIdentity("printer"))
27 communicator
.waitForShutdown()
32 Public Sub Main(ByVal args() As String)
33 Dim app
As Server
= New Server
34 Dim status
As Integer = app
.main(args
, "config.server")
35 System
.Environment
.Exit(status
)