public boolean startRCservice()
{
int orbType = ORBInfo.getOrbEnumValue();
boolean result = false;
RecoveryServiceInit recoveryService = null;
String theClassName = null;
// The class that should start the service shall not be called directly. An intermediate class shall be used
try
{
switch (orbType)
{
case ORBType.ORBIX2000:
{
theClassName = "com.arjuna.ats.internal.jts.orbspecific.orbix2000.recoverycoordinators.Orbix2kRCServiceInit";
recoveryService = (RecoveryServiceInit) Thread.currentThread().getContextClassLoader().loadClass(theClassName).newInstance();
recoveryService.startRCservice();
result = true;
}
break;
case ORBType.JACORB:
{
theClassName = "com.arjuna.ats.internal.jts.orbspecific.jacorb.recoverycoordinators.JacOrbRCServiceInit";
recoveryService = (RecoveryServiceInit) Thread.currentThread().getContextClassLoader().loadClass(theClassName).newInstance();
recoveryService.startRCservice();
result = true;
}
break;
default: