Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

TODO Application

This repository contains simple TODO application that can be used with Kaazing AMQP or JMS brokers.

The application loads 5 todo items from a JSON file and notifies other users when

  • An item is marked complete/incomplete
  • An item is being edited by another client. This causes edits to be disabled on all other clients.

The application uses the Kaazing Universal Clients for Javascript open source library.

For technology specific implementations see:

Obtaining and configuring Kaazing Gateways and related Servers

The TODO application requires that the Kaazing WebSocket Gateway (KWG) be installed on one or more servers. KWG supports two protocols, AMQP and JMS.

AMQP

  • Download AMQP Gateway (Gateway + Documentation + Demos) from AMQP Gateway downloads page as a ZIP file This package also contains AMQP server Apache QPID, see - Apache QPID for more information.
  • Unzip downloaded package to <your installation directory>
  • By default Gateway is configured to restrict communications only to/from the scripts that are running on its embedded servers. This may not be convenient for Web Development. In order to remove this restriction, please:
    • Go to _<your installation directory>/kaazing-websocket-gateway-amqp-4.0.6/conf _
    • Edit gateway_config.xml
    • Locate lines
      <allow-origin>http://${gateway.hostname}:${gateway.extras.port}</allow-origin> and replace them with <allow-origin>*</allow-origin>
    • Make sure that you have Java 7 or greater installed
    • Open terminal window at <your installation directory>/kaazing-websocket-gateway-amqp-4.0.6/bin and start gateway
      ./gateway.start
    • Open terminal window at <your installation directory>/qpid-java-broker-0.28/bin and start Apache QPID AMQP server
      ./qpid-server
    • Note: to stop both Gateway and AMQP server just execute Ctrl-C on the relevant terminal windows or just close them.

JMS

  • Download JMS Gateway (Gateway + Demos) from JMS Gateway Download Site as a ZIP file This package also contains JMS server Apache ActiveMQ, see - Apache ActiveMQ for more information.
  • Unzip downloaded package to <your installation directory>
  • By default Gateway is configured to restrict communications only to/from the scripts that are running on its embedded servers. This may not be convenient for Web Development. In order to remove this restriction, please:
    • Goto _<your installation directory>/kaazing-websocket-gateway-jms-4.0.9/conf _

    • Open gateway_config.xml

    • Locate lines
      <allow-origin>http://${gateway.hostname}:${gateway.extras.port}</allow-origin> and replace them with <allow-origin> *</allow-origin>

    • Make sure that you have Java 7 or greater installed

    • Open terminal window at _<your installation directory>/kaazing-websocket-gateway-jms-4.0.9/bin _ and start gateway
      ./gateway.start

    • Open terminal window at _<your installation directory>/apache-activemq-5.10.0/bin _ and start Apache Active MQ JMS server
      ./activemq start

    • Note: to stop:

      • Gateway: execute Ctrl-C on the relevant terminal windows or just close it.
      • Apache ActiveMQ JMS Server: open terminal window at _<your installation directory>/apache-activemq-5.10.0/bin _ and execute
        ./activemq stop