throw new Exception( "no service created for lateral cache." );
}
lateralWatch = new LateralCacheWatchRepairable();
lateralWatch.setCacheWatch( new ZombieLateralCacheWatch() );
}
catch ( Exception ex )
{
// Failed to connect to the lateral server.
// Configure this LateralCacheManager instance to use the
// "zombie" services.
log.error( "Failure, lateral instance will use zombie service", ex );
lateralService = new ZombieLateralCacheService();
lateralWatch = new LateralCacheWatchRepairable();
lateralWatch.setCacheWatch( new ZombieLateralCacheWatch() );
// Notify the cache monitor about the error, and kick off
// the recovery process.
LateralCacheMonitor.getInstance().notifyError();
}