Download - Using Apache ActiveMQ with JavaScript
Using Apache ActiveMQ with JavaScript
Fernando RibeiroSolution Architect
Summary
• Overview• Samples– DynJS, Rhino, Nashorn
• References
Overview
• Apache ActiveMQ provides protocol support that can be used in JavaScript
• Messaging brokers should be preferred over bridges, for example, for application integration
DynJS
• Send to Queue – http://simplesassim.wordpress.com/2014/01/02/how-to-send-a-message-to-an-apache-activemq-queue-with-dynjs/
• Send to Topic – http://simplesassim.wordpress.com/2014/01/02/how-to-send-a-message-to-an-apache-activemq-topic-with-dynjs/
DynJS
• Receive from Queue – http://simplesassim.wordpress.com/2014/01/02/how-to-receive-a-message-from-an-apache-activemq-queue-with-dynjs/
• Receive from Topic – http://simplesassim.wordpress.com/2014/01/02/how-to-receive-a-message-from-an-apache-activemq-topic-with-dynjs/
Rhino
• Send to a Queue – http://simplesassim.wordpress.com/2013/12/31/how-to-send-a-message-to-an-apache-activemq-queue-with-rhino/
• Send to a Topic – http://simplesassim.wordpress.com/2013/12/31/how-to-send-a-message-to-an-apache-activemq-topic-with-rhino/
Rhino
• Receive from a Queue – http://simplesassim.wordpress.com/2013/12/31/how-to-receive-a-message-from-an-apache-activemq-queue-with-rhino/
• Receive from a Topic – http://simplesassim.wordpress.com/2013/12/31/how-to-receive-a-message-from-an-apache-activemq-topic-with-rhino/
Nashorn
• Send to a Queue – http://simplesassim.wordpress.com/2013/12/31/how-to-send-a-message-to-an-apache-activemq-queue-with-nashorn/
• Send to a Topic – http://simplesassim.wordpress.com/2013/12/31/how-to-send-a-message-to-an-apache-activemq-topic-with-nashorn/
Nashorn
• Receive from a Queue – http://simplesassim.wordpress.com/2013/12/31/how-to-receive-a-message-from-an-apache-activemq-queue-with-nashorn/
• Receive from a Topic – http://simplesassim.wordpress.com/2013/12/31/how-to-receive-a-message-from-an-apache-activemq-topic-with-nashorn/
References
• Red Hat JBoss A-MQ – http://www.redhat.com/products/jbossenterprisemiddleware/amq/
• Apache ActiveMQ – http://activemq.apache.org/
• DynJS – http://www.dynjs.org/• Rhino – https://
developer.mozilla.org/en/docs/Rhino
References
• Nashorn – http://openjdk.java.net/projects/nashorn/