From do-not-reply at jboss.org Mon Sep 13 17:33:56 2010 Content-Type: multipart/mixed; boundary="===============8364615223051266545==" MIME-Version: 1.0 From: do-not-reply at jboss.org To: hornetq-commits at lists.jboss.org Subject: [hornetq-commits] JBoss hornetq SVN: r9679 - in trunk: hornetq-rest/hornetq-rest and 2 other directories. Date: Mon, 13 Sep 2010 17:33:56 -0400 Message-ID: <201009132133.o8DLXuMI009005@svn01.web.mwc.hst.phx2.redhat.com> --===============8364615223051266545== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: clebert.suconic(a)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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 =3D false; - return clientID; } = Added: trunk/tests/src/org/hornetq/tests/integration/jms/client/ConnectionT= est.java =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- 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 Clebert Suconic<= /a> + * + * + */ +public class ConnectionTest extends JMSTestBase +{ + + // Constants ----------------------------------------------------- + + // Attributes ---------------------------------------------------- + + // Static -------------------------------------------------------- + + // Constructors -------------------------------------------------- + + // Public -------------------------------------------------------- + = + + public void testGetSetConnectionFactory() throws Exception + { + Connection conn =3D cf.createConnection(); + = + conn.getClientID(); + = + conn.setClientID("somethingElse"); + } + + + // Package protected --------------------------------------------- + + // Protected ----------------------------------------------------- + + // Private ------------------------------------------------------- + + // Inner classes ------------------------------------------------- + +} --===============8364615223051266545==--