// ordered cache item update and notification.
synchronized ( cacheDesc )
{
try
{
CompositeCache c = ( CompositeCache ) cacheDesc.cache;
//TODO; make this a bit less of a hack
// If the source of this request was from a cluster, then
// update the remote caches. COnsider it a local update.
// This requires that two local caches not be connected to
// two clustered remote caches. The failover runner will
// have to make sure of this. ALos, the local cache needs
// avoid updating this source. Will need to pass the source
// id somehow. The remote cache should udate all local caches
// but not update the cluster source. Cluster remote caches
// should only be updated by the server and not the RemoteCache.
// PUT LOGIC IN REMOTE CACHE
// WILL TRY UPDATING REMOTES
if ( fromCluster )
{
if ( log.isDebugEnabled() )
{
log.debug( "not updating clusters **************************************" );
}
c.localUpdate( item );
}
else
{
if ( log.isDebugEnabled() )
{
log.debug( "updating clusters **************************************" );
}
c.update( item );
}
}
catch ( Exception oee )
{
}