log.error( "No service created, must zombie" );
throw new Exception( "No service created for lateral cache." );
}
this.lateralWatch = new LateralCacheWatchRepairable();
this.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 );
this.lateralService = new ZombieLateralCacheService();
this.lateralWatch = new LateralCacheWatchRepairable();
this.lateralWatch.setCacheWatch( new ZombieLateralCacheWatch() );
// Notify the cache monitor about the error, and kick off
// the recovery process.
createMonitor( this );
monitor.notifyError();