Download - Using Apache ActiveMQ with Ruby
Using Apache ActiveMQ with Ruby
Fernando RibeiroSolution Architect
Summary
• Overview• Samples– Ruby, Ruby on Rails, JRuby
• References
Overview
• Apache ActiveMQ provides protocol support that can be used in Ruby
• Messaging brokers should be preferred over bridges, for example, for application integration
Ruby
• Send to Queue – http://simplesassim.wordpress.com/2014/02/02/how-to-send-a-message-to-an-apache-activemq-queue-with-ruby/
• Send to Topic – http://simplesassim.wordpress.com/2014/02/03/how-to-send-a-message-to-an-apache-activemq-topic-with-ruby/
Ruby
• Receive from Queue – http://simplesassim.wordpress.com/2014/02/03/how-to-receive-a-message-from-an-apache-activemq-queue-with-ruby/
• Receive from Topic – http://simplesassim.wordpress.com/2014/02/03/how-to-receive-a-message-from-an-apache-activemq-topic-with-ruby/
Ruby on Rails
• Send to a Queue – http://simplesassim.wordpress.com/2014/01/27/how-to-send-a-message-to-an-apache-activemq-queue-with-ruby-on-rails/
• Send to a Topic – http://simplesassim.wordpress.com/2014/01/27/how-to-send-a-message-to-an-apache-activemq-topic-with-ruby-on-rails/
Ruby on Rails
• Receive from a Queue – http://simplesassim.wordpress.com/2014/01/27/how-to-receive-a-message-from-an-apache-activemq-queue-with-ruby-on-rails/
• Receive from a Topic – http://simplesassim.wordpress.com/2014/01/27/how-to-receive-a-message-from-an-apache-activemq-topic-with-ruby-on-rails/
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/
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/
References
• Red Hat JBoss A-MQ – http://www.redhat.com/products/jbossenterprisemiddleware/amq/
• Apache ActiveMQ – http://activemq.apache.org/
• Ruby – http://www.ruby-lang.org/• Ruby STOMP Client – https://
github.com/stompgem/stomp
References
• Ruby on Rails – http://www.rubyonrails.org/• ActiveMessaging –
https://github.com/kookster/activemessaging• JRuby – http://www.jruby.org/