Hi,

Below code prints null. is this expected? is there any way to get Ignite
instance from a cache instance?


ignite = Ignition.start("cache-server-test-node.xml");
                
System.out.println("#################################################
"+ignite.cache("TEST_REPLICATED").getCacheManager());

below is cache configuration

<bean class="org.apache.ignite.configuration.CacheConfiguration">
                                        <property name="name" 
value="TEST_REPLICATED" />
                                        <property name="cacheMode" 
value="REPLICATED" />
                                        <property name="managementEnabled" 
value="true" />
                                        <property name="statisticsEnabled" 
value="true" />
                                        <property name="evictionPolicy">
                                                <bean
class="org.apache.ignite.cache.eviction.fifo.FifoEvictionPolicy">
                                                        <property 
name="maxSize" value="20000" />
                                                </bean>
                                        </property>
                                        <property name="startSize" 
value="21000" />
                                </bean>


Regards,
Vinay
                



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/cache-getCacheManager-returns-null-tp2676.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to