public void run()
{
IThreadContext tc = ThreadContextFactory.make();
// Now, start the server, and then wait for the shutdown signal. On shutdown, we have to actually do the cleanup,
// because the JVM isn't going away.
AgentsDaemon ad = new AgentsDaemon(processID);
try
{
ad.runAgents(tc);
}
catch (ManifoldCFException e)
{
daemonException = e;
}
finally
{
try
{
ad.stopAgents(tc);
}
catch (ManifoldCFException e)
{
daemonException = e;
}