You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by howfree <27...@qq.com> on 2017/02/05 22:03:49 UTC

How can I get the object "org.apache.ignite.Ignite" in a CacheStore implementation?

					<property name="cacheStoreFactory">
						<bean class="javax.cache.configuration.FactoryBuilder"
							factory-method="factoryOf">
							<constructor-arg
value="com.my.bigdata.cachestore.ProductStore"></constructor-arg>
						</bean>
					</property>

when I implement the CacheStore interface, I need read data from another
cache.
I usually do it like this:
Ignite ignite = Ignition.start("example-ignite.xml").

Is there any way where I can get it directly from Ignite APIs?
or I inject it into my CacheStore Implementation in XML file definition?

thanks.


 



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/How-can-I-get-the-object-org-apache-ignite-Ignite-in-a-CacheStore-implementation-tp10435.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.