/commented by nicolas héron/

Hello, I read that. As 1.1.0 is not available I take version 1.1.0-SNAPSHOT
when I do the request .
Ignite grid = Ignition.start("example-cache.xml"); IgniteCache<String,
ContextUtilisateurIndex> cache =grid.cache("local_tx_indexusercontext");
IgniteCache<String, ContextUtilisateurIndex>
contextUtilisateurIndexIgniteCache = getCache(); SqlQuery sql = new
SqlQuery(ContextUtilisateurIndex.class, "= ?");
QueryCursor<Cache.Entry&lt;String, ContextUtilisateurIndex>> cursor =
cache.query(sql.setArgs(userId));

I get the following error Caused by: javax.cache.CacheException: Indexing is
disabled for cache: local_tx_indexusercontext

here is my example-cache.xml file <beans
xmlns="http://www.springframework.org/schema/beans";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:util="http://www.springframework.org/schema/util"; xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/util
http://www.springframework.org/schema/util/spring-util.xsd";>

<bean id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">

    <property name="cacheConfiguration" >
        <list>

            <bean parent="cache-template">
                <property name="name" value="local_tx_indexusercontext"/>
                <property name="cacheMode" value="LOCAL"/>
                <property name="atomicityMode" value="TRANSACTIONAL"/>
            </bean>

        </list>
    </property>
    

</bean>



<bean id="cache-template" abstract="true"
class="org.apache.ignite.configuration.CacheConfiguration">
    
    <property name="startSize" value="3000000"/>
    <property name="writeSynchronizationMode" value="FULL_SYNC"/>
</bean>
</beans>

----- 
/This post is migrated from now discontinued Apache Ignite forum at 
http://apacheignite.readme.io/v1.0/discuss/



--
View this message in context: 
http://apache-ignite-users.70518.x6.nabble.com/Migration-queryIndexEnabled-from-gridgain-to-apache-ignite-tp261p263.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Reply via email to