I am trying to reference a cache from within a CacheInterceptorAdapter
(onAfterPut method) to invoke an entry processor to another cache after a
put.

How to get a refrence to a cache?

I tried the followings:


Ignite ignite = Ignition.start("default-config.xml");
IgniteCache<Integer, Address> cache =
ignite.getOrCreateCache("MyOtherCache");

or

IgniteCache<Integer, Address> cache =
ignite.start().getOrCreateCache("MyOtherCache");

But it fails:


class org.apache.ignite.IgniteCheckedException: Ignite instance with this
name has already been started: gridgain-cluster

Reply via email to