Integrating with ActiveMQ
For using ActiveMQ queues and topics with Jetty, you have two choices:
- Traditional server-side jms api calls
ActiveMQ with Ajax and Jetty
Here's an example of setting up to receive messages from a queue. All you need do is to add a listener with a unique id, the name of the queue or topic from which you want to receive messages, and the name of a function which will be called back when a message is available.
Here's the plumbing you need to take advantage of this very convenient feature: