Monil,

You can also use IgniteSpringBean to initialize Ignite separately from
SpringCacheManager, but within Spring context.

So you need to configure following beans:
1. PercentageDataRespository
2. IgniteConfiguration
3. IgniteSpringBean (IgniteConfiguration is injected via 'configuration'
property, PercentageDataRespository is injected into store via
@SpringResource)
4. SpringCacheManager (references IgniteSpringBean by igniteInstanceName)

With this configuration everything is initialized by Spring, so no need to
use Ignition.start().

Note that for the SpringCacheManager you will have to explicitly specify
that it depends on IgniteSpringBean (I believe Spring supports that).
Ideally, you would reference IgniteSpringBean directly instead of relying on
instance name, but unfortunately it's not possible right now. There is a
ticket to improve this: https://issues.apache.org/jira/browse/IGNITE-8880

-Val



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to