for (int i=0; i<CORBA_ERROR_THRESHOLD; i++)
{
try
{
//notify process about our new port
processRef.cosSetParams(params);
//get the process id
processId = processRef.cosGetProcessId();
//get operation mode
operMode = processRef.cosGetOperationMode();
//notify managed process of a restart