Using Apache ActiveMQ with JVM Languages

  • 2,244 views
Uploaded on

 

More in: Software , Business
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
2,244
On Slideshare
0
From Embeds
0
Number of Embeds
1

Actions

Shares
Downloads
10
Comments
0
Likes
6

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. Using Apache ActiveMQ with JVM Languages Fernando Ribeiro Solution Architect
  • 2. Summary • Overview • Samples – Java, ABCL, BSF4ooRexx, Ceylon, Clojure, DynJS, Fantom, Golo, Groovy, JRuby, JScheme, Jython, Kawa, Kotlin, Rhino, Nashorn, NetRexx, Scala, SISC, Tcl/Java, Visual COBOL, Xtend • References
  • 3. Overview • Apache ActiveMQ provides protocol support that can be used in JVM languages • Messaging brokers should be preferred over bridges, for example, for application integration
  • 4. Java • Send to a Queue – http://simplesassim.wordpress.com/2014/02/ 19/how-to-send-a-message-to-an-apache- activemq-queue-with-java/ • Send to a Topic – http://simplesassim.wordpress.com/2014/02/ 19/how-to-send-a-message-to-an-apache- activemq-topic-with-java/
  • 5. Java • Receive from a Queue – http://simplesassim.wordpress.com/2013/11/ 10/how-to-receive-a-message-from-an- apache-activemq-queue-with-java/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/11/ 10/how-to-receive-a-message-from-an- apache-activemq-topic-with-java/
  • 6. ABCL • Send to Queue – http://simplesassim.wordpress.com/2014/04/ 02/how-to-send-a-message-to-an-apache- activemq-queue-with-abcl/ • Send to Topic – http://simplesassim.wordpress.com/2014/04/ 02/how-to-send-a-message-to-an-apache- activemq-topic-with-abcl/
  • 7. ABCL • Receive from Queue – http://simplesassim.wordpress.com/2014/04/ 02/how-to-receive-a-message-from-an- apache-activemq-queue-with-abcl/ • Receive from Topic – http://simplesassim.wordpress.com/2014/04/ 02/how-to-receive-a-message-from-an- apache-activemq-topic-with-abcl/
  • 8. BSF4ooRexx • Send to Queue – https://simplesassim.wordpress.com/2014/08 /21/how-to-send-a-message-to-an-apache- activemq-queue-with-bsf4oorexx/ • Send to Topic – https://simplesassim.wordpress.com/2014/08 /21/how-to-send-a-message-to-an-apache- activemq-topic-with-bsf4oorexx/
  • 9. BSF4ooRexx • Receive from Queue – https://simplesassim.wordpress.com/2014/08 /22/how-to-receive-a-message-from-an- apache-activemq-queue-with-bsf4oorexx/ • Receive from Topic – https://simplesassim.wordpress.com/2014/08 /22/how-to-receive-a-message-from-an- apache-activemq-topic-with-bsf4oorexx/
  • 10. Ceylon • Send to a Queue – http://simplesassim.wordpress.com/2013/12/ 28/how-to-send-a-message-to-an-apache- activemq-queue-with-ceylon/ • Send to a Topic – http://simplesassim.wordpress.com/2013/12/ 28/how-to-send-a-message-to-an-apache- activemq-topic-with-ceylon/
  • 11. Ceylon • Receive from a Queue – http://simplesassim.wordpress.com/2013/12/ 28/how-to-receive-a-message-from-an- apache-activemq-queue-with-ceylon/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/12/ 28/how-to-receive-a-message-from-an- apache-activemq-topic-with-ceylon/
  • 12. Clojure • Send to a Queue – http://simplesassim.wordpress.com/2013/12/ 31/how-to-send-a-message-to-an-apache- activemq-queue-with-clojure/ • Send to a Topic – http://simplesassim.wordpress.com/2013/12/ 31/how-to-send-a-message-to-an-apache- activemq-topic-with-clojure/
  • 13. Clojure • Receive from a Queue – http://simplesassim.wordpress.com/2013/12/ 31/how-to-receive-a-message-from-an- apache-activemq-queue-with-clojure/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/12/ 31/how-to-receive-a-message-from-an- apache-activemq-topic-with-clojure/
  • 14. 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/
  • 15. 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/
  • 16. Fantom • Send to a Queue – http://simplesassim.wordpress.com/2014/01/ 11/how-to-send-a-message-to-an-apache- activemq-queue-with-fantom/ • Send to a Topic – http://simplesassim.wordpress.com/2014/01/ 11/how-to-send-a-message-to-an-apache- activemq-topic-with-fantom/
  • 17. Fantom • Receive from a Queue – http://simplesassim.wordpress.com/2014/01/ 11/how-to-receive-a-message-from-an- apache-activemq-queue-with-fantom/ • Receive from a Topic – http://simplesassim.wordpress.com/2014/01/ 11/how-to-receive-a-message-from-an- apache-activemq-topic-with-fantom/
  • 18. Golo • Send to a Queue – http://simplesassim.wordpress.com/2014/01/ 10/how-to-send-a-message-to-an-apache- activemq-queue-with-golo/ • Send to a Topic – http://simplesassim.wordpress.com/2014/01/ 10/how-to-send-a-message-to-an-apache- activemq-topic-with-golo/
  • 19. Golo • Receive from a Queue – http://simplesassim.wordpress.com/2014/01/ 10/how-to-receive-a-message-from-an- apache-activemq-queue-with-golo/ • Receive from a Topic – http://simplesassim.wordpress.com/2014/01/ 10/how-to-receive-a-message-from-an- apache-activemq-topic-with-golo/
  • 20. Groovy • Send to a Queue – http://simplesassim.wordpress.com/2014/01/ 01/how-to-send-a-message-to-an-apache- activemq-queue-with-groovy/ • Send to a Topic – http://simplesassim.wordpress.com/2014/01/ 01/how-to-send-a-message-to-an-apache- activemq-topic-with-groovy/
  • 21. Groovy • Receive from a Queue – http://simplesassim.wordpress.com/2014/01/ 01/how-to-receive-a-message-from-an- apache-activemq-queue-with-groovy/ • Receive from a Topic – http://simplesassim.wordpress.com/2014/01/ 01/how-to-receive-a-message-from-an- apache-activemq-topic-with-groovy/
  • 22. JRuby • Send to a Queue – http://simplesassim.wordpress.com/2013/12/ 30/how-to-send-a-message-to-an-apache- activemq-queue-with-jruby/ • Send to a Topic – http://simplesassim.wordpress.com/2013/12/ 30/how-to-send-a-message-to-an-apache- activemq-topic-with-jruby/
  • 23. JRuby • Receive from a Queue – http://simplesassim.wordpress.com/2013/12/ 30/how-to-receive-a-message-from-an- apache-activemq-queue-with-jruby/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/12/ 30/how-to-receive-a-message-from-an- apache-activemq-topic-with-jruby/
  • 24. JScheme • Send to Queue – http://simplesassim.wordpress.com/2014/03/ 30/how-to-send-a-message-to-an-apache- activemq-queue-with-jscheme/ • Send to Topic – http://simplesassim.wordpress.com/2014/03/ 30/how-to-send-a-message-to-an-apache- activemq-topic-with-jscheme/
  • 25. JScheme • Receive from Queue – http://simplesassim.wordpress.com/2014/03/ 30/how-to-receive-a-message-from-an- apache-activemq-queue-with-jscheme/ • Receive from Topic – http://simplesassim.wordpress.com/2014/03/ 30/how-to-receive-a-message-from-an- apache-activemq-topic-with-jscheme/
  • 26. Jython • Send to a Queue – http://simplesassim.wordpress.com/2013/12/ 30/how-to-send-a-message-to-an-apache- activemq-queue-with-jython/ • Send to a Topic – http://simplesassim.wordpress.com/2013/12/ 30/how-to-send-a-message-to-an-apache- activemq-topic-with-jython/
  • 27. Jython • Receive from a Queue – http://simplesassim.wordpress.com/2013/12/ 30/how-to-receive-a-message-from-an- apache-activemq-queue-with-jython/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/12/ 30/how-to-receive-a-message-from-an- apache-activemq-topic-with-jython/
  • 28. Kawa • Send to Queue – http://simplesassim.wordpress.com/2014/03/ 17/how-to-send-a-message-to-an-apache- activemq-queue-with-kawa/ • Send to Topic – http://simplesassim.wordpress.com/2014/03/ 17/how-to-send-a-message-to-an-apache- activemq-topic-with-kawa/
  • 29. Kawa • Receive from Queue – http://simplesassim.wordpress.com/2014/03/ 17/how-to-receive-a-message-from-an- apache-activemq-queue-with-kawa/ • Receive from Topic – http://simplesassim.wordpress.com/2014/03/ 17/how-to-receive-a-message-from-an- apache-activemq-topic-with-kawa/
  • 30. Kotlin • Send to a Queue – http://simplesassim.wordpress.com/2014/01/ 10/how-to-send-a-message-to-an-apache- activemq-queue-with-kotlin/ • Send to a Topic – http://simplesassim.wordpress.com/2014/01/ 10/how-to-send-a-message-to-an-apache- activemq-topic-with-kotlin/
  • 31. Kotlin • Receive from a Queue – http://simplesassim.wordpress.com/2014/01/ 10/how-to-receive-a-message-from-an- apache-activemq-queue-with-kotlin/ • Receive from a Topic – http://simplesassim.wordpress.com/2014/01/ 10/how-to-receive-a-message-from-an- apache-activemq-topic-with-kotlin/
  • 32. 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/
  • 33. 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/
  • 34. 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/
  • 35. 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/
  • 36. NetRexx • Send to Queue – https://simplesassim.wordpress.com/2014/08 /17/how-to-send-a-message-to-an-apache- activemq-queue-with-netrexx/ • Send to Topic – https://simplesassim.wordpress.com/2014/08 /17/how-to-send-a-message-to-an-apache- activemq-topic-with-netrexx/
  • 37. NetRexx • Receive from Queue – https://simplesassim.wordpress.com/2014/08 /17/how-to-receive-a-message-from-an- apache-activemq-queue-with-netrexx/ • Receive from Topic – https://simplesassim.wordpress.com/2014/08 /17/how-to-receive-a-message-from-an- apache-activemq-topic-with-netrexx/
  • 38. Scala • Send to a Queue – http://simplesassim.wordpress.com/2013/12/ 31/how-to-send-a-message-to-an-apache- activemq-queue-with-scala/ • Send to a Topic – http://simplesassim.wordpress.com/2013/12/ 31/how-to-send-a-message-to-an-apache- activemq-topic-with-scala/
  • 39. Scala • Receive from a Queue – http://simplesassim.wordpress.com/2013/12/ 31/how-to-receive-a-message-from-an- apache-activemq-queue-with-scala/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/12/ 31/how-to-receive-a-message-from-an- apache-activemq-topic-with-scala/
  • 40. SISC • Send to Queue – http://simplesassim.wordpress.com/2014/04/ 06/how-to-send-a-message-to-an-apache- activemq-queue-with-sisc/ • Send to Topic – http://simplesassim.wordpress.com/2014/04/ 06/how-to-send-a-message-to-an-apache- activemq-topic-with-sisc/
  • 41. SISC • Remove from Queue – http://simplesassim.wordpress.com/2014/04/ 06/how-to-receive-a-message-from-an- apache-activemq-queue-with-sisc/ • Remove from Topic – http://simplesassim.wordpress.com/2014/04/ 06/how-to-receive-a-message-from-an- apache-activemq-topic-with-sisc/
  • 42. Tcl/Java • Send to Queue – https://simplesassim.wordpress.com/2014/08 /24/how-to-send-a-message-to-an-apache- activemq-queue-with-tcljava/ • Send to Topic – https://simplesassim.wordpress.com/2014/08 /24/how-to-send-a-message-to-an-apache- activemq-topic-with-tcljava/
  • 43. Tcl/Java • Receive from Queue – https://simplesassim.wordpress.com/2014/08 /24/how-to-receive-a-message-from-an- apache-activemq-queue-with-tcljava/ • Receive from Topic – https://simplesassim.wordpress.com/2014/08 /24/how-to-receive-a-message-from-an- apache-activemq-topic-with-tcljava/
  • 44. Visual COBOL • Send to a Queue – http://simplesassim.wordpress.com/2013/11/ 12/how-to-send-a-message-to-an-apache- activemq-queue-with-visual-cobol/ • Send to a Topic – http://simplesassim.wordpress.com/2013/11/ 12/how-to-send-a-message-to-an-apache- activemq-topic-with-visual-cobol/
  • 45. Visual COBOL • Receive from a Queue – http://simplesassim.wordpress.com/2013/11/ 13/how-to-receive-a-message-from-an- apache-activemq-queue-with-visual-cobol/ • Receive from a Topic – http://simplesassim.wordpress.com/2013/11/ 13/how-to-receive-a-message-from-an- apache-activemq-topic-with-visual-cobol/
  • 46. Xtend • Send to a Queue – http://simplesassim.wordpress.com/2014/01/ 01/how-to-send-a-message-to-an-apache- activemq-queue-with-xtend/ • Send to a Topic – http://simplesassim.wordpress.com/2014/01/ 01/how-to-send-a-message-to-an-apache- activemq-topic-with-xtend/
  • 47. Xtend • Receive from a Queue – http://simplesassim.wordpress.com/2014/01/ 01/how-to-receive-a-message-from-an- apache-activemq-queue-with-xtend/ • Receive from a Topic – http://simplesassim.wordpress.com/2014/01/ 01/how-to-receive-a-message-from-an- apache-activemq-topic-with-xtend/
  • 48. References • Red Hat JBoss A-MQ – http://www.redhat.com/products/jbossenterp risemiddleware/amq/ • Apache ActiveMQ – http://activemq.apache.org/ • ABCL – http://www.abcl.org/ • BSF4ooRexx – http://bsf4oorexx.sourceforge.net/
  • 49. References • Ceylon – http://www.ceylon-lang.org/ • Clojure – http://www.clojure.org/ • DynJS – http://www.dynjs.org/ • Fantom – http://www.fantom.org/ • Golo – http://www.golo-lang.org/ • Groovy – http://www.groovy-lang.org/ • JRuby – http://www.jruby.org/
  • 50. References • JScheme – http://jscheme.sourceforge.net/ • Jython – http://www.jython.org/ • Kawa – http://www.gnu.org/software/kawa/ • Kotlin – http://kotlin.jetbrains.org/ • Rhino – http://developer.mozilla.org/en/docs/Rhino • Nashorn – http://openjdk.java.net/projects/nashorn/
  • 51. References • NetRexx – http://www.netrexx.org/ • Scala – http://www.scala-lang.org/ • SISC – http://www.sisc-scheme.org/ • Tcl/Java – http://sourceforge.net/projects/tcljava • Visual COBOL – http://www.microfocus.com/products/micro- focus-developer/visual_cobol/
  • 52. References • Xtend – http://www.xtend-lang.org/