Hi,
right now i try to use hazelcast in my smartfox server, and i already read the white paper hazelcast integration..
after i follow all the code in the white paper, my code is not working in tris game and still stuck for a while.
is it possible that i get the full code for tris game with the hazelcast function.
thank you
Hazelcast in smartfox
Re: Hazelcast in smartfox
Hi,
I don't think we've ever prepared a downloadable version of the code in the white-paper.
In any case what is exactly the problem you're seeing maybe we can help.
Cheers
I don't think we've ever prepared a downloadable version of the code in the white-paper.
In any case what is exactly the problem you're seeing maybe we can help.
Cheers
Re: Hazelcast in smartfox
Hi lapo,
i have something to confirm..
1. (server side) hazelcast become a member of instance, and smartfox become a client of instance?
- so there will be 2 running apps hazelcast member and 2 smartfox server client?
2. (client side) send/get request from hazelcast not to smartfox?
thanks for reply..
i have something to confirm..
1. (server side) hazelcast become a member of instance, and smartfox become a client of instance?
- so there will be 2 running apps hazelcast member and 2 smartfox server client?
2. (client side) send/get request from hazelcast not to smartfox?
thanks for reply..
Re: Hazelcast in smartfox
Sorry for the delay
It depends in Hazelcast every node that joins the cluster can be a server or a client (in respect to the cluster).
Clients can only read data from the grid memory, but not change it, if I remember correctly. However in the examples we provide we never use the Hazelcast client.
I don't understand the question, sorry. Maybe can you rephrase it?
Hazelcast is only a server side component that helps maintaining a shared state across all servers in the cluster. It can be thought of an in-memory database that uses plain Java objects.
Cheers
adifong wrote:1. (server side) hazelcast become a member of instance, and smartfox become a client of instance?
It depends in Hazelcast every node that joins the cluster can be a server or a client (in respect to the cluster).
Clients can only read data from the grid memory, but not change it, if I remember correctly. However in the examples we provide we never use the Hazelcast client.
2. (client side) send/get request from hazelcast not to smartfox?
I don't understand the question, sorry. Maybe can you rephrase it?
Hazelcast is only a server side component that helps maintaining a shared state across all servers in the cluster. It can be thought of an in-memory database that uses plain Java objects.
Cheers
Re: Hazelcast in smartfox
Hi Team ,
I have integrated Hazelcast with Smartfox server and able to connect other sfs members and share data . Now I am stuck at one point . My class objects contains Room instances also . How do I serialize it ?
I tried sending it as a string by using room.toString() , but then how do i convert it back to Room instance format ?
Please Help
Thanks
I have integrated Hazelcast with Smartfox server and able to connect other sfs members and share data . Now I am stuck at one point . My class objects contains Room instances also . How do I serialize it ?
I tried sending it as a string by using room.toString() , but then how do i convert it back to Room instance format ?
Please Help
Thanks
Re: Hazelcast in smartfox
Hi,
the Room object is too complex and cannot be serialized.
What you could do, is serialize the object partially by extracting the properties that you want to transmit and only send those to the other side.
Cheers
the Room object is too complex and cannot be serialized.
What you could do, is serialize the object partially by extracting the properties that you want to transmit and only send those to the other side.
Cheers
Who is online
Users browsing this forum: No registered users and 94 guests