// mt_server.cpp,v 1.6 2002/10/18 21:02:28 bala Exp

#include "MT_AMH_Server.h"
#include "AMH_Servant.h"

int
main (int argc, char *argv[])
{
  MT_AMH_Server amh_server (argc, argv);
  amh_server.try_RT_scheduling();
  amh_server.start_orb_and_poa ();

  if (amh_server.parse_args () != 1)
    {
        amh_server.usage ("");
        ACE_OS::exit (1);
    }

  AMH_Servant servant (amh_server.orb ());

  if (servant.parse_args (argc, argv) != 1)
    {
      amh_server.usage ("sleep time unspecified");
      ACE_OS::exit (1);
    }

  amh_server.register_servant (&servant);
  amh_server.start_threads ();

  return 1;
}
