Hi,
I couldn't reproduce your issue on my side. Did exactly the following.
public class ExampleNodeStartup {
public static void main(String[] args) throws IgniteException {
BeanFactory factory = new
ClassPathXmlApplicationContext("org/apache/ignite/examples/example-spring-cache.xml");
SpringCacheManager cacheManager =
(SpringCacheManager)factory.getBean("cacheManager");
Ignite ignite = Ignition.ignite();
System.out.println("Cache size:" +
ignite.cache("local_cache").size(CachePeekMode.ALL));
}
}
Code executes successfully. XML config, passed to the application context,
just has definitions of SpringCacheManager, local cache and basic
IgniteConfiguration. I'll be able to send the configs to you as attachments
when you subscribe to this user's list (see instructions in comments above).
Double-check that your SpringCacheManager starts the local cache on the same
node which instance you use here:
Ignition.ignite().cache(this.getCacheName()).
Now it seems that the local cache is started on one node but you're trying
to work with it on another one, that doesn't have it.
BTW, this line is useless
<property name="gridName" value="dstreamGrid" />
because the local cache will be started on the grid which name is specified
in ignite-cache.xml. If ignite-cache.xml doesn't set the name then the
default name will be used - null.
Regards,
Denis
--
View this message in context:
http://apache-ignite-users.70518.x6.nabble.com/LOCAL-CACHE-MODE-Configuration-settings-tp1875p1908.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.