JBoss Fuse demo showing How to use HTML5 WebSockets.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
installs
projects
support
.gitignore
GettingStartedWithFuse6.1.pdf
README.md
fusewebsocket.yaml
init.sh

README.md

JBoss Fuse WebSocket HTML 5 Demo Quickstart Guide

Websocket Demo based on JBoss Fuse product.

Videos:
http://vimeo.com/user16928011/fuse-getting-started-part1
http://vimeo.com/user16928011/fuse-getting-started-part2
http://vimeo.com/user16928011/fuse-getting-started-part3

Setup and Configuration

See Quick Start Guide in project as ODT and PDF for details on installation. For those that can't wait:

  • see README in 'installs' directory

  • add product from http://www.jboss.org/products/fsw/download/

  • run 'init.sh' & read output

  • read Quick Start Guide

  • setup JBDS for project import, add jboss-fuse server

  • import projects

  • start JBoss Fuse using the shell or .bat script under bin directory bin/fuse

[kpeeples@localhost bin]$ ./fuse Please wait while JBoss Fuse is loading... 100% [====================================================================] _ ____ ______ | | _ \ | |
| | |
) | ___ ___ ___ | |
_ _ ___ ___ _ | | _ < / _ / __/ __| | __| | | / |/ _
| |
| | |
) | () _ __ \ | | | || _ \ / _/|/ _/|// || _,|_/_|

JBoss Fuse (6.1.0.redhat-379) http://www.redhat.com/products/jbossenterprisemiddleware/fuse/

Hit '' for a list of available commands and '[cmd] --help' for help on a specific command.

Open a browser to http://localhost:8181 to access the management console

Create a new Fabric via 'fabric:create' or join an existing Fabric via 'fabric:join [someUrls]'

Hit '' or 'osgi:shutdown' to shutdown JBoss Fuse.

JBossFuse:karaf@root>

  • when the JBoss Fuse console appears, install the activemq-websocket war file. This war file contains the web project and stomp javascript clients used to open communication between the web browser and websocket server running in JBoss Fuse.

    JBossFuse:karaf@root>install -s webbundle:mvn:com.fusesource.examples.websocket/web/1.0/war?Web-ContextPath=/activemq-websocket

  • start Feeder application, which will populate randomly data (stock prices) and publish them in a topic which is the topic used by websocket to expose the date to the web browser. You will find this in the 'support' directory.

    start_feeder.sh

  • open your web browser and point to the following URL: http://localhost:8181/activemq-websocket/stocks-activemq.html

  • click on connect button, login is 'guest':'password'

  • consult stock prices!

Released versions

See the tagged releases for the following verisons of the product:

  • v2.0 updated to JBoss Fuse v6.1 release.
  • v1.0 is initial JBoss Fuse v6 release.