We wanted to implement WriteThrough/write behind in Hazelcast using MapStore for Postgres DataStore using ReactiveClient. But could not succeed and we are also not getting any sample for reactive approach. We are implementing MapStore Interface to achieve WriteThrough Caching Pattern. we have to inject the Respository in Mapstore and we are trying inject using @Autowired Annotation.
But we are not able to do, we are getting error repository as null.
Can we get some working example for Hazelcast 4.2 with Postgress as Datastore in reactive way? Thanks Jeni Ambrose
We tried with Autowiring the Repositories in Mapstore implementation
1条答案
按热度按时间erhoui1w1#
Here's one way:
You can have most (or none!) of the config in a static file, load it, and amend it to add Spring managed bits.
Also, 4.2 is old, use 5.2.1 or whatever is newest when you get to doing this.