문제

I'm working in a project that uses dropwizard as framework, and hibernate as Java persistence framework.

I've discovered hazelcast to distribute my second cache level in a cluster using the provided annotation @cache into any entity of my project.

But I've a doubt. If I follow the official documentation (http://www.hazelcast.com/docs/latest/manual/single_html/, chapter 13) I need to setup hibernate with some property that set my node as HibernateClientInstance.

So, my question is: if my web app is a node of cluster set as HazelcastClient, where is the central server? I need to run Hazelcast.newHazelcastInstance(new Config()); at the bootstrap of my web app instance?

도움이 되었습니까?

해결책

Why do you have to set your web app as hazelcast client?

If you have hibernate in your web-app then it should behave as an hazelcast server to store the cache.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top