Hi howfree,

Try this:

@IgniteInstanceResource
Ignite ignite;


Thanks
Shawn

-----邮件原件-----
发件人: howfree [mailto:[email protected]] 
发送时间: 2017年2月6日 6:04
收件人: [email protected]
主题: 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.

Reply via email to