You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Komal <20...@iitrpr.ac.in> on 2019/06/03 06:04:22 UTC
Query on bean injection
Dear Sir/Mam,
I have a query about bean injection in cache store implementation. I posted
the query on Apache ignite users but didn't get a reply. My question is as
follows :
I am overriding write method of cache store and using
FactoryBuilder.factoryOf method in the cache configuration. But I need to
inject spring bean in the cache store implementation. I tried using
@SpringResource by defining that bean in xml file, but there a lot of
nested beans which are defined using java. Is there a way I can inject a
bean defined using java in cache store implementation?
Regards
Komal Chugh
Re: Query on bean injection
Posted by aealexsandrov <ae...@gmail.com>.
Hi,
Looks like the related issue has already discussed here:
https://stackoverflow.com/questions/45269537/how-to-inject-spring-resources-into-apache-ignite-classes
The main idea is using the:
https://ignite.apache.org/releases/latest/javadoc/org/apache/ignite/IgniteSpringBean.html
BR,
Andrei
--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/