Hi, please take a look at my config and code below, i think i did not specify some bean depending on dataSource on client side.
1. In client side, the spring config is as below: <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="peerClassLoadingEnabled" value="false"></property> <property name="clientMode" value="true"></property> </bean> 2. In server side, config is as below: <bean id="ignite.cfg" class="org.apache.ignite.configuration.IgniteConfiguration"> <property name="peerClassLoadingEnabled" value="false"></property> <property name="cacheConfiguration"> <list> <bean class="org.apache.ignite.configuration.CacheConfiguration"> <property name="name" value="xxx" /> <property name="copyOnRead" value="false" /> <property name="cacheMode" value="PARTITIONED" /> <property name="backups" value="1" /> <property name="cacheStoreFactory" value="xxx" > <bean class="org.apache.ignite.cache.store.jdbc.CacheJdbcPojoStoreFactory"> <property name="dataSourceBean" value="dataSource" /> <property name="types" > ... some db table and field mappings here, mean to load all data from the table ... </property> </bean> </property> </bean> </list> </property> </bean> <bean name="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> ... db connection config here ... </bean> 3. Server code IgniteCache cache = ignite.getOrCreateCache("xxx"); cache.loadAll(null, null); // loading succeeds cache.get(xxxKey); // here it works, we can get entity with specified key. 4. Client code (executed after server node launched) IgniteCache cache = ignite.getOrCreateCache("xxx"); cache.get(xxxKey); // here it failed as i posted previously, no datasource found. 5. If i add <bean name="dataSource" ... to client spring config, then client code works. Is it possible that client side need to connect db using datasource? In this case, client just perform a simple query of the cache. Thanks, Jason -- View this message in context: http://apache-ignite-users.70518.x6.nabble.com/Data-grid-client-errors-out-when-datasource-not-defined-tp7820p7841.html Sent from the Apache Ignite Users mailing list archive at Nabble.com.