lib/hornetq/client/session_pool.rb in jruby-hornetq-0.2.1.alpha vs lib/hornetq/client/session_pool.rb in jruby-hornetq-0.2.3.alpha
- old
+ new
@@ -93,10 +93,10 @@
# parameters
#
# Example
# session_pool.producer('MyAddress') do |session, producer|
# message = session.create_message(HornetQ::Client::Message::TEXT_TYPE,false)
- # message << "#{Time.now}: ### Hello, World ###"
+ # message.body = "#{Time.now}: ### Hello, World ###"
# producer.send(message)
# end
def producer(address, &block)
session do |s|
producer = nil
\ No newline at end of file