Sha256: 9ef18e824939b5d27fe032f728f8b0443df7eadb0503f5bdf4c4877d63b3ae12

Contents?: true

Size: 507 Bytes

Versions: 3

Compression:

Stored size: 507 Bytes

Contents

# Allow examples to be run in-place without requiring a gem install
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../../lib'

require 'rubygems'
require 'modern_times'
require 'yaml'
require 'bar_worker'
require 'baz_worker'

config = YAML.load_file('hornetq.yml')
ModernTimes::HornetQ::Client.init(config['client'])

manager = ModernTimes::Manager.new(:persist_file => 'modern_times.state')
manager.stop_on_signal
manager.allowed_workers = [BarWorker,BazWorker]
#manager.add(BarWorker, 2, {})
manager.join

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
modern_times-0.1.2 examples/simple/manager.rb
modern_times-0.1.1 examples/simple/manager.rb
modern_times-0.1.0 examples/simple/manager.rb