Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin
Znav
nextIceBox Administration
prevConfiguring IceBox Services

Incorporating everything we discussed previously, we can now configure and start IceBox servers.

On this page:

Table of Contents
maxLevel2

Starting the C++ IceBox Server

The configuration file for our example C++ service is shown below:

Wiki Markup
{zcode}
IceBox.Service.Hello=HelloService:create
Hello.Endpoints=tcp -p 10001
{zcode}

Notice that we define an endpoint for the object adapter created by the Hello service.

Assuming these properties reside in a configuration file named config, we can start the C++ IceBox server as follows:

Wiki Markup
{zcode}
$ icebox --Ice.Config=config
{zcode}

Additional command line options are supported, including those that allow the server to run as a Windows service or Unix daemon.

Ztop

Starting the Java IceBox Server

Our Java configuration is nearly identical to the C++ version, except for the entry point specification:

Wiki Markup
{zcode}
IceBox.Service.Hello=HelloServiceI
Hello.Endpoints=tcp -p 10001
{zcode}

Notice that we define an endpoint for the object adapter created by the Hello service.

Assuming these properties reside in a configuration file named config, we can start the Java IceBox server as follows:

Wiki Markup
{zcode}
$ java IceBox.Server --Ice.Config=config
{zcode}
Ztop

Starting the C# IceBox Server

The configuration file for our example C# service is shown below:

Wiki Markup
{zcode}
IceBox.Service.Hello=helloservice.dll:HelloService
Hello.Endpoints=tcp -p 10001
{zcode}

Notice that we define an endpoint for the object adapter created by the Hello service.

Assuming these properties reside in a configuration file named config, we can start the C# IceBox server as follows:

Wiki Markup
{zcode}
$ iceboxnet --Ice.Config=config
{zcode}
Ztop

Anchor
fail
fail

IceBox Server Failures

At startup, an IceBox server inspects its configuration for all properties having the prefix IceBox.Service and initializes each service. If initialization fails for a service, the IceBox server invokes the stop operation on any initialized services, reports an error, and terminates.

Ztop
See Also
Zret
Znav
nextIceBox Administration
prevConfiguring IceBox Services