[ 
https://issues.apache.org/jira/browse/IGNITE-1234?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14682201#comment-14682201
 ] 

kcheng.mvp edited comment on IGNITE-1234 at 8/11/15 6:14 PM:
-------------------------------------------------------------

Here is my configuration

{code:xml}
<property name="cacheConfiguration">
                        <list>
                                <!-- Partitioned cache example configuration 
(Atomic mode). -->
                                <bean 
class="org.apache.ignite.configuration.CacheConfiguration">
                                        <!--<property name="name" 
value="delta"/> -->
                                        <property name="memoryMode" 
value="OFFHEAP_TIERED" />
                                        <!--default 4GB -->
                                        <property name="offHeapMaxMemory" 
value="#{4 * 1024L * 1024L * 1024L}" />
                                        <property name="atomicityMode" 
value="ATOMIC" />
                                        <property name="backups" value="1" />
                                        <property name="interceptor">
                                                <bean 
class="com.fangcang.cache.core.interceptor.IncrInterceptor" />
                                        </property>
                                        <property name="cacheStoreFactory">
                                                <bean
                                                        
class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory">
                                                        <property 
name="dataSource" ref="dataSource" />
                                                </bean>
                                        </property>
                                </bean>
                        </list>
                </property>
{code}


client node java code
-----------
{code:java}
CacheConfiguration<String, PriceLine> config = new CacheConfiguration<String, 
PriceLine>("Cache_Name");
cfg.setIndexedTypes(String.class, PriceLine.class);


iIgniteCache cache = ignite.getOrCreateCache(config);

cache.loadCache(null, null);
{code}

-----------

and in the log of server node I got the message

Calling Cache.loadCache() method will have no effect, 
CacheConfiguration.getStore() is not defined for cache:








was (Author: kcheng.mvp):
Here is my configuration

{code}
<property name="cacheConfiguration">
                        <list>
                                <!-- Partitioned cache example configuration 
(Atomic mode). -->
                                <bean 
class="org.apache.ignite.configuration.CacheConfiguration">
                                        <!--<property name="name" 
value="delta"/> -->
                                        <property name="memoryMode" 
value="OFFHEAP_TIERED" />
                                        <!--default 4GB -->
                                        <property name="offHeapMaxMemory" 
value="#{4 * 1024L * 1024L * 1024L}" />
                                        <property name="atomicityMode" 
value="ATOMIC" />
                                        <property name="backups" value="1" />
                                        <property name="interceptor">
                                                <bean 
class="com.fangcang.cache.core.interceptor.IncrInterceptor" />
                                        </property>
                                        <property name="cacheStoreFactory">
                                                <bean
                                                        
class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory">
                                                        <property 
name="dataSource" ref="dataSource" />
                                                </bean>
                                        </property>
                                </bean>
                        </list>
                </property>
{/code}


client node java code
-----------
CacheConfiguration<String, PriceLine> config = new CacheConfiguration<String, 
PriceLine>("Cache_Name");
cfg.setIndexedTypes(String.class, PriceLine.class);


iIgniteCache cache = ignite.getOrCreateCache(config);

cache.loadCache(null, null);

-----------

and in the log of server node I got the message

Calling Cache.loadCache() method will have no effect, 
CacheConfiguration.getStore() is not defined for cache:







> Calling Cache.loadCache() method will have no effect, 
> CacheConfiguration.getStore() is not defined for cache: 
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: IGNITE-1234
>                 URL: https://issues.apache.org/jira/browse/IGNITE-1234
>             Project: Ignite
>          Issue Type: Bug
>          Components: cache
>            Reporter: kcheng.mvp
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to