using in-memory data-structures in GWT

37 views
Skip to first unread message

junaid

unread,
Jan 10, 2012, 3:23:11 AM1/10/12
to google-we...@googlegroups.com
Hi
I have a client requirement of 
not to use an RDBMS, but instead do everything using in-memory data-structures in GWT.  If the server is restarted then the application state will revert to the last state saved.

I don't have any idea of using in-memory data , I used to work with MySQL ,but not in memory
If anyone could please guide me a bit about this 

Thanks 
Junaid

Thomas Broyer

unread,
Jan 10, 2012, 4:31:45 AM1/10/12
to google-we...@googlegroups.com
There are in-memory RDBMS if you want (H2 for instance).

Otherwise, "public static final" fields and synchronized() blocks all over the place (and/or using a ConcurrentMap implementation –e.g. ConcurrenthashMap– instead of a plain Map –such as HashMap–).

But, you're talking about a "last state saved", so there's some state persisted somewhere?

Anyway, that's nothing specific to GWT; you'd better ask a wider audience re. java web servers (e.g. stackoverflow)
Reply all
Reply to author
Forward
0 new messages