Author: chirino
Date: Fri Nov 5 15:41:56 2010
New Revision: 1031636
URL: http://svn.apache.org/viewvc?rev=1031636&view=rev
Log:
remove warning issued by latest ruby stomp api (method deprecation).
Modified:
activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/ruby/publisher.rb
Modified:
activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/ruby/publisher.rb
URL:
http://svn.apache.org/viewvc/activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/ruby/publisher.rb?rev=1031636&r1=1031635&r2=1031636&view=diff
==============================================================================
---
activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/ruby/publisher.rb
(original)
+++
activemq/activemq-apollo/trunk/apollo-distro/src/main/release/examples/ruby/publisher.rb
Fri Nov 5 15:41:56 2010
@@ -41,10 +41,10 @@ for i in 1..(@batches)
@start = Time.now
for j in 1...@messages
- @conn.send '/topic/event', @body, {'persistent'=>'false'}
+ @conn.publish '/topic/event', @body, {'persistent'=>'false'}
$stdout.print "Sent #{j} messages\n" if j%1000==0
end
- @conn.send '/topic/event', "REPORT", {'persistent'=>'false'}
+ @conn.publish '/topic/event', "REPORT", {'persistent'=>'false'}
@remaining = @subscribers
while @remaining > 0
@@ -62,6 +62,6 @@ for i in 1..(@batches)
@times[i] = @diff
end
[email protected] '/topic/event', "SHUTDOWN", {'persistent'=>'false'}
[email protected] '/topic/event', "SHUTDOWN", {'persistent'=>'false'}
@conn.disconnect
\ No newline at end of file