examples/client/advanced/consumer.rb in jruby-hornetq-0.2.1.alpha vs examples/client/advanced/consumer.rb in jruby-hornetq-0.2.3.alpha

- old
+ new

@@ -13,10 +13,10 @@ timeout = (ARGV[0] || 1000).to_i config = YAML.load_file(File.dirname(__FILE__) + '/hornetq.yml')['development'] # Create a HornetQ session -HornetQ::Client::Factory.create_session(config) do |session| +HornetQ::Client::Factory.session(config) do |session| consumer = session.create_consumer('jms.queue.ExampleQueue') session.start count = 0 start_time = Time.now