Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Delicious example using Socket.IO to publish and receive messages over AMQP
Branch: master
Pull request Compare This branch is even with jamescarr:master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.

Simple AMQP Example

I put this together to give a quick example of using amqp to interact with a java based program. To run this example, first start up the node server under ./node node app.js

From there, run StockProcessor to listen for stock tickers. Navigate to http://localhost:3000/ and try GOOG or IBM.

You can also run RandomPriceRunner, which will publish a random price every 500 milliseconds and will update in realtime in the view.

Explore the code and have fun. :)


I use gradle to build the java classes... for the presentation I ran gradle eclipse and ran the main classes from eclipse.

To gather the dependencies for the node portion of the app, just go to the node directory and type npm install . (you'll need to have npm from

Oh yeah, you should probably have rabbitmq up and running but ideally this should work with any amqp broker. :)

Something went wrong with that request. Please try again.