activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r932283 - /activemq/trunk/assembly/src/release/example/src/StompExample.java
Date Fri, 09 Apr 2010 07:52:40 GMT
Author: dejanb
Date: Fri Apr  9 07:52:40 2010
New Revision: 932283

URL: http://svn.apache.org/viewvc?rev=932283&view=rev
Log:
fixing Stomp example

Modified:
    activemq/trunk/assembly/src/release/example/src/StompExample.java

Modified: activemq/trunk/assembly/src/release/example/src/StompExample.java
URL: http://svn.apache.org/viewvc/activemq/trunk/assembly/src/release/example/src/StompExample.java?rev=932283&r1=932282&r2=932283&view=diff
==============================================================================
--- activemq/trunk/assembly/src/release/example/src/StompExample.java (original)
+++ activemq/trunk/assembly/src/release/example/src/StompExample.java Fri Apr  9 07:52:40
2010
@@ -33,10 +33,6 @@ public class StompExample {
 		connection.open("localhost", 61613);
 		
 		connection.connect("system", "manager");
-		StompFrame connect = connection.receive();
-		if (!connect.getAction().equals(Stomp.Responses.CONNECTED)) {
-			throw new Exception ("Not connected");
-		}
 		
 		connection.begin("tx1");
 		connection.send("/queue/test", "message1");



Mime
View raw message