}
private static PojoCacheManager getManagerForPojoCache(String cacheConfigName)
throws ClusteringNotSupportedException
{
PojoCacheManager pcm = null;
try
{
pcm = PojoCacheManagerLocator.getCacheManagerLocator().getCacheManager(null);
}
catch (Throwable t)
{
throw new ClusteringNotSupportedException("Could not access PojoCacheManager for JBossWeb clustering", t);
}
if (!pcm.getConfigurationNames().contains(cacheConfigName))
throw new IllegalStateException("PojoCacheManager does not recognize config " + cacheConfigName);
return pcm;
}