throws CosProcessRunningException, CosFailedToRegisterException
{
//cannot store process with empty process name
if (entity == null || entity.length() == 0)
{
throw new CosFailedToRegisterException();
}
logger_.debug("Process " + entity + " is registering (Process ID = " + processId + ")...");
//logging context
NDC.push(entity);
//verbose
String iorString = CorbaManager.objectToString(managedProcess);
logger_.trace("Managed Process IOR: " + iorString );
if (!poll_process(managedProcess))
{
logger_.error("Can not poll the registering process!!!");
NDC.pop();
throw new CosFailedToRegisterException();
}
else
{
logger_.debug("Registering process is running. I can poll!");
}