Skip to content

We are going to setup and run a very basic Hazelcast Data Grid in client-server mode. A background thread will generate some updates to fictitious Stock Market data held in the grid and we'll use Hazelcast's event listener framework to publish these events to our clients.

Notifications You must be signed in to change notification settings

7erry/hazelcast-websocket-demo

Repository files navigation

To run this demo you'll need a copy of Tomcat or another Web Container with support for JSR-356.

Build the project with mvn clean install -DskipTests

Start the test:
mvn test

Install Tomcat webserver:
OSX>brew install tomcat

Add a user to the manager-gui if you wish to deploy the war file dynamically:
OSX>vi /Users/yournamehere/homebrew/Cellar/tomcat/9.0.16/libexec/conf/tomcat-users.xml

Start tomcat in the foreground (testing purposes)
OSX>catalina run

Deploy /hazelcast-web
http://localhost:8080/manager/html

Load up the stockticker.jsp
open http://localhost:8080/hazelcast-web/stockticker.jsp

Load up the Swing consumer:
hazelcast-client/controller.Controller.main

Swing Interface - WebSocket Consuming Stock updates

Web Interface - WebSocket Consuming Stock updates

Stock Ticker Updater
Stock Ticker Updater

About

We are going to setup and run a very basic Hazelcast Data Grid in client-server mode. A background thread will generate some updates to fictitious Stock Market data held in the grid and we'll use Hazelcast's event listener framework to publish these events to our clients.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published