Typo. The code example should have been:
public final void cache(Object somethingToCache, ReplicationMode replicationMode) throws
ServiceException
{
TreeCache treeCache = mTreeCache;
Fqn typePath = MetadataCachePaths.typePathFor(somethingToCache);
if ((replicationMode == ReplicationMode.Replicate) &&
(treeCache.getCacheModeInternal() != 1))
{
treeCache.getInvocationContext().getOptionOverrides().setCacheModeLocal(false);
}
else
{
treeCache.getInvocationContext().getOptionOverrides().setCacheModeLocal(true);
}
treeCache.put(typePath, BaseTypeKey, somethingToCache);
}
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4179640#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...