using apache activemq with javascript
DESCRIPTION
TRANSCRIPT
![Page 1: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/1.jpg)
Using Apache ActiveMQ with JavaScript
Fernando RibeiroSolution Architect
![Page 2: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/2.jpg)
Summary
• Overview• Samples– DynJS, Rhino, Nashorn
• References
![Page 3: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/3.jpg)
Overview
• Apache ActiveMQ provides protocol support that can be used in JavaScript
• Messaging brokers should be preferred over bridges, for example, for application integration
![Page 4: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/4.jpg)
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/
![Page 5: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/5.jpg)
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/
![Page 6: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/6.jpg)
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/
![Page 7: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/7.jpg)
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/
![Page 8: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/8.jpg)
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/
![Page 9: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/9.jpg)
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/
![Page 10: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/10.jpg)
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
![Page 11: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/11.jpg)
References
• Nashorn – http://openjdk.java.net/projects/nashorn/
![Page 12: Using Apache ActiveMQ with JavaScript](https://reader033.vdocuments.site/reader033/viewer/2022061220/54bc9bab4a795995528b4649/html5/thumbnails/12.jpg)