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

- old
+ new

@@ -20,10 +20,10 @@ producer = session.create_producer('MyAddress') consumer = session.create_consumer('MyQueue') # Create a non-durable message to send message = session.create_message(HornetQ::Client::Message::TEXT_TYPE,false) - message << "#{Time.now}: ### Hello, World ###" + message.body = "#{Time.now}: ### Hello, World ###" producer.send(message) # Receive a single message, return immediately if no message available \ No newline at end of file