There are a few example programs demonstrating the REST messaging or Ajax in the activemq/activemq-web-demo module.
Running the Web Samples
We have integrated the Web Samples into the binary distribution.
The steps to running the Web Samples are
Download a binary distribution
Run the Message Broker e.g. by running bin/activemq
point your browser to http://localhost:8161/demo