According to the javadoc this should be possible with code similiar to:
{code}
InitialContext ic = new InitialContext();
DistributedMap dm =(DistributedMap)ic.lookup("services/cache/instance_one");
{code}
and I have managed to get various caches with this method (for example services/cache/iwk/global ) but never the 'baseCache'
So far the only way I have managed to get the baseCache is by using the deprecated Cache and ServerCache classes from com.ibm.ws.cache, but would preferably not use these deprecated classes.
So if anyone could point me in the right direction it would be greatly appreciated :) I'm doing this on portal 6.0.1.6
JNDI name of default cache or basecache is “services/cache/distributedmap”...
DistributedMap dm =(DistributedMap)ic.lookup("services/cache/distributedmap");
Is this what your looking for?
But you got me on the right track, and I soon found out that if you use,
{code}
DistributedMap dm =DynamicCacheAccessor.getDistributedMap();
{code}
you will get the 'baseCache'
thanks a lot for the help! :)