Hey guys, thanks for the responses.
Maneesh, you raise a good point. I would like to not have to store the messages in a DB at all,
and now that you mention it the issue could very well simply be a perceived problem since I'm trying to
adapt that tutorial. If I'm understanding you correctly, you are saying that the server
(which could really just be a set of
servlets?) would receive a message then utilize GCM to
send it to all connected users. So the
java server would be using a GCM API to manage the
send/receive capabilites.
The logic in my head is:
// Receive message from user over GCM
// Validate message
validate(message);
// Use GCM to send to all connected users
GcmAPi.sendToAll(message);
Is that looking about right?
Ulf, thats a good suggestion that I could very well end up using, thanks for the idea!