- Use Spring-Session-Hazelcast to replicate Http Session between Application Nodes
- Use Hazelcast Hibernate as Hibernate 2nd Level cache
- Use only one single Hazelcast instance auto-generated by Spring Boot
- Support Grails mutable Session objects (Flash messages, etc.)
- Spring-Boot automatically configures a 'hazelcastInstance' bean if Hazelcast dependency is found.
- We can configure hazelcast-hibernate to use an existing HazelcastInstance with hibernate.cache.hazelcast.instance_name config key.
- Unfortunately, Grails instantiates the hibernateDatastore bean before Spring-Boot generates the hazelcastInstance bean.