5 October 2012

Java One 2012 slides and code

The slides from my Java One 2012 tutorial on Programming websockets with GlassFish and Grizzly are now on slide share;



Also the code is up and running on Amazon EC2 so you can see for yourself whether websockets works on your device. The demo combines GlassFish WebSockets built on Grizzly with a Coherence Data Grid pushing events (the stock price update) down to the browser in real time.

There are 2 code downloads;
Highcharts will need to be unzipped in the root of the web source tree and coherence will need to be configured as a library in NetBeans.

As an aside. People say that support of WebSockets over current networks could be patchy. Well I've checked the demo on this blog is working over 3G, Hotel WLAN, Conference WLAN and Home ADSL and it's never failed and given that it is hosted on Amazon EC2 (whose network topology I suspect is far from simple) I think this stuff works (Also it is using plain ws:// not tunnelled over TLS/SSL via wss:// which is supposed to be better supported).

Enjoy!

Steve

6 comments:

  1. i can't download the source code!!!

    ReplyDelete
    Replies
    1. Can you please try again as it seems to be working just fine for me?

      Delete
  2. Grizzly Library please

    ReplyDelete
    Replies
    1. The Grizzly library comes with GlassFish 3

      Delete
    2. i want to know what is the version of grizzly websocket api used in the tutorial, thanks

      Delete
  3. Grizzly 1.9 which comes with GlassFish 3.1.2. The exact versions are in the slides on Slideshare.

    ReplyDelete