Not related to Java, but this is a very cool demo: http://browserquest.mozilla.org/
Even better, the source is at github, and is a good example of using nodejs to do the server work. https://github.com/mozilla/BrowserQuest
Here’s Mozilla’s own writeup: https://hacks.mozilla.org/2012/03/browserquest/