jruby-jms
jruby-jms copied to clipboard
Complete JRuby API into Java Messaging Specification (JMS)
I'm connecting to WebSphere MQ. My code is ``` require 'jms' require 'yaml' require 'java' jms_provider = 'wmq' config = YAML.load_file("#{Rails.root}/lib/tasks/wmq.yml")[jms_provider] JMS::Connection.session(config) do |session| session.consume(queue_name: 'ExampleQueue', timeout: 1000) do |message|...
Related to #13: it would be really helpful if there was some example code showing the correct pattern to reconnect to a server when a problem occurs. The following appears...