Example of a daemon server and its client. Clients can connect to
an existing object.

you can use those three methods to start a daemon object.

   method 1:   command line option of horb
   method 2:   configuration file of horb
   method 3:   write a program

Once you start a daemon object, repeat invoking of Client a few times. 
You will see the daemon object remembers the number of clients ever
connected.

* Method 1

The horb command can take an option, -start. The -start option
takes two arguments, a classname and an object name.

	horb -start horb.examples.daemon.Server daemonServer

You can start only one object from command line.

* Method 2

You can start arbitrary number of objects from a configuration
file. If you have a configuration file, daemon.conf as;

	object[0].className=horb.examples.daemon.Server
	object[0].objectID=daemonServer
	object[0].port=0

The -conf option takes the filename of a configuration file.

	horb -conf daemon.conf

* Method 3

You can write a program that starts some objects as daemon objects.

Class Server starts ORB and a port server and registers itself to ORB as 
"horb://Hostname/daemonServer".

	java horb.examples.daemon.Server

* version

Author: HIRANO Satoshi
Versioin: 1.0

* How to compile and run

c:> horbc Server.java
c:> horbc -c Client.java

c:> (try the above methods one by one to start a daemon object)

c:> java horb.examples.daemon.Client
c:> java horb.examples.daemon.Client
c:> java horb.examples.daemon.Client


* Classes

   Server.java		sample of daemon object
   Client.java		simple client class
