My application is just MVC-application with database, views, and hazelcast as a cache, lock producer, id generator service.
But to configure node I should know all serializable objects stored in hazelcast. Please check me, then correct approach to deploy hazelcast server will be:
1) Build my client-application into JAR/WAR;
2) Put this JAR/WAR into classpath on the hazelcast server machine;
3) Run hazelcast server;
4) Run client-application, connect to hazelcast server.
And I can't just set classloader with method .setClassLoader on my client.
For example, I want to write my own spi id generator. Should I place MyClientIdGeneratorProxy in my client-application (or in some additional application as well) to access this functionality from the hazelcast-server? Is it correct?
Thank you for your answer.