I started exploring about Hazelcast functionalities and I've been trying use a MapStore as a Write-Behind buffer for my database through HazelcastRepository. My goal is to use a JpaRepository inside my MapStore to load and store to/from the cache.
I'm using Spring Boot and after doing some research i found that i could use the @SpringAware to Autowire my Repository inside MapStore but every-time it gets there my Bean is null
and I get a NullPointerException
.
I can't get it working even after lots of different tests I was not able to Autowire my bean inside the MapStore
is something wrong with this configuration to enable SpringAware or am I looking at the wrong place?
Found This stackoverflow post and it gave me clues but I still couldn't figure out the issue since most configurations were xml and not java. Also Found this Github Issue on how to configure SpringAware in Hazelcast through Java configurations
And I committed my example code in this Git Repo Here.