Skip to content
This repository was archived by the owner on Aug 29, 2018. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions routing-daemon/lib/openshift/routing/daemon.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ def read_config cfgfile
@password = @cfg['ACTIVEMQ_PASSWORD'] || 'routinginfopasswd'
@port = (@cfg['ACTIVEMQ_PORT'] || 61613).to_i
@hosts = (@cfg['ACTIVEMQ_HOST'] || 'activemq.example.com').split(',').map do |hp|
hp.split(":").instance_eval do |h,p,ssl|
chunks = hp.split(":")
h = chunks[0]
p = chunks.size > 1 ? chunks[1] : @port
{
:host => h,
# Originally, ACTIVEMQ_HOST allowed specifying only one host, with
# the port specified separately in ACTIVEMQ_PORT.
:port => p || @cfg['ACTIVEMQ_PORT'] || '61613',
}
end
:port => p
}
end
@plugin_prefix = "plugin.activemq.pool."
pools = @cfg["#{@plugin_prefix}size"]
Expand Down