user3813256
user3813256

Reputation:

hazelcast deployment implementation

I have an application with a few model classes. These model classes are stored in Hazelcast maps in my application. I am trying to use a hazelcast client to connect to the hazelcast server node. I have map-store-enabled to true and initial load mode set to EAGER. Should I do the following:

  1. Copy the same hazelcast.conf file on both client and server or should I only keep the map store enabled as true on the server (or just the client)?
  2. If I keep the map-store-enabled=true on server, I am guessing I need to deploy my map store classes there. Is that the correct approach?

Thanks

Upvotes: 2

Views: 538

Answers (1)

pveentjer
pveentjer

Reputation: 11307

A client has a different configuration, so there is no point in copying it to the client. Only the server needs to have it.

The mapstore classes need to be on the server since it is only running on the server. The classes of the objects you put in the map need to be available on both client and server.

Upvotes: 2

Related Questions