[hornetq-commits] JBoss hornetq SVN: r9679 - in trunk: hornetq-rest/hornetq-rest and 2 other directories.

do-not-reply at jboss.org do-not-reply at jboss.org
Mon Sep 13 17:33:56 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-09-13 17:33:55 -0400 (Mon, 13 Sep 2010)
New Revision: 9679

Added:
   trunk/tests/src/org/hornetq/tests/integration/jms/client/ConnectionTest.java
Modified:
   trunk/examples/soak/tx-restarts/
   trunk/hornetq-rest/hornetq-rest/
   trunk/src/main/org/hornetq/jms/client/HornetQConnection.java
Log:
HORNETQ-510 - Letting getClientID to be called before a setClientID


Property changes on: trunk/examples/soak/tx-restarts
___________________________________________________________________
Name: svn:ignore
   + build



Property changes on: trunk/hornetq-rest/hornetq-rest
___________________________________________________________________
Name: svn:ignore
   + target


Modified: trunk/src/main/org/hornetq/jms/client/HornetQConnection.java
===================================================================
--- trunk/src/main/org/hornetq/jms/client/HornetQConnection.java	2010-09-13 21:30:19 UTC (rev 9678)
+++ trunk/src/main/org/hornetq/jms/client/HornetQConnection.java	2010-09-13 21:33:55 UTC (rev 9679)
@@ -163,8 +163,6 @@
    {
       checkClosed();
 
-      justCreated = false;
-
       return clientID;
    }
 

Added: trunk/tests/src/org/hornetq/tests/integration/jms/client/ConnectionTest.java
===================================================================
--- trunk/tests/src/org/hornetq/tests/integration/jms/client/ConnectionTest.java	                        (rev 0)
+++ trunk/tests/src/org/hornetq/tests/integration/jms/client/ConnectionTest.java	2010-09-13 21:33:55 UTC (rev 9679)
@@ -0,0 +1,59 @@
+/*
+ * Copyright 2010 Red Hat, Inc.
+ * Red Hat licenses this file to you under the Apache License, version
+ * 2.0 (the "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ * implied.  See the License for the specific language governing
+ * permissions and limitations under the License.
+ */
+
+package org.hornetq.tests.integration.jms.client;
+
+import javax.jms.Connection;
+
+import org.hornetq.tests.util.JMSTestBase;
+
+/**
+ * A ConnectionTest
+ *
+ * @author <a href="mailto:clebert.suconic at jboss.org">Clebert Suconic</a>
+ *
+ *
+ */
+public class ConnectionTest extends JMSTestBase
+{
+
+   // Constants -----------------------------------------------------
+
+   // Attributes ----------------------------------------------------
+
+   // Static --------------------------------------------------------
+
+   // Constructors --------------------------------------------------
+
+   // Public --------------------------------------------------------
+   
+
+   public void testGetSetConnectionFactory() throws Exception
+   {
+      Connection conn = cf.createConnection();
+      
+      conn.getClientID();
+      
+      conn.setClientID("somethingElse");
+   }
+
+
+   // Package protected ---------------------------------------------
+
+   // Protected -----------------------------------------------------
+
+   // Private -------------------------------------------------------
+
+   // Inner classes -------------------------------------------------
+
+}



More information about the hornetq-commits mailing list