activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r511781 - in /activemq/trunk/assembly/src/release/example/ruby: catstomp.rb listener.rb publisher.rb stompcat.rb
Date Mon, 26 Feb 2007 10:55:54 GMT
Author: jstrachan
Date: Mon Feb 26 02:55:53 2007
New Revision: 511781

URL: http://svn.apache.org/viewvc?view=rev&rev=511781
Log:
added explicit disconnect after Chris T.'s patch

Modified:
    activemq/trunk/assembly/src/release/example/ruby/catstomp.rb
    activemq/trunk/assembly/src/release/example/ruby/listener.rb
    activemq/trunk/assembly/src/release/example/ruby/publisher.rb
    activemq/trunk/assembly/src/release/example/ruby/stompcat.rb

Modified: activemq/trunk/assembly/src/release/example/ruby/catstomp.rb
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/example/ruby/catstomp.rb?view=diff&rev=511781&r1=511780&r2=511781
==============================================================================
--- activemq/trunk/assembly/src/release/example/ruby/catstomp.rb (original)
+++ activemq/trunk/assembly/src/release/example/ruby/catstomp.rb Mon Feb 26 02:55:53 2007
@@ -42,6 +42,7 @@
     STDIN.each_line { |line| 
         @conn.send @destination, line, @headers
     }
+    @conn.disconnect
 
 rescue 
 end

Modified: activemq/trunk/assembly/src/release/example/ruby/listener.rb
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/example/ruby/listener.rb?view=diff&rev=511781&r1=511780&r2=511781
==============================================================================
--- activemq/trunk/assembly/src/release/example/ruby/listener.rb (original)
+++ activemq/trunk/assembly/src/release/example/ruby/listener.rb Mon Feb 26 02:55:53 2007
@@ -48,3 +48,4 @@
  		$stdout.print "#{@msg.command}: #{@msg.body}\n"
 	end
 end
+@conn.disconnect
\ No newline at end of file

Modified: activemq/trunk/assembly/src/release/example/ruby/publisher.rb
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/example/ruby/publisher.rb?view=diff&rev=511781&r1=511780&r2=511781
==============================================================================
--- activemq/trunk/assembly/src/release/example/ruby/publisher.rb (original)
+++ activemq/trunk/assembly/src/release/example/ruby/publisher.rb Mon Feb 26 02:55:53 2007
@@ -63,3 +63,5 @@
 end
 
 @conn.send '/topic/event', "SHUTDOWN", {'persistent'=>'false'}
+
+@conn.disconnect
\ No newline at end of file

Modified: activemq/trunk/assembly/src/release/example/ruby/stompcat.rb
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/example/ruby/stompcat.rb?view=diff&rev=511781&r1=511780&r2=511781
==============================================================================
--- activemq/trunk/assembly/src/release/example/ruby/stompcat.rb (original)
+++ activemq/trunk/assembly/src/release/example/ruby/stompcat.rb Mon Feb 26 02:55:53 2007
@@ -43,7 +43,8 @@
         $stdout.flush
         @conn.ack @msg.headers["message-id"]
     end
-
+    @conn.disconnect
+  
 rescue 
 end
 



Mime
View raw message