You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
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|
p message
end
end
I'm connecting to WebSphere MQ. My code is
Here is the yml
I got the following error:
NameError: cannot load Java class javax.jms.DeliveryMode
Also I want to specify ssl cipher and key repository. How to setup SSL for wmq. I have the ssl key files.