[jboss-cvs] JBossAS SVN: r105786 - branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Mon Jun 7 16:01:20 EDT 2010


Author: clebert.suconic at jboss.com
Date: 2010-06-07 16:01:19 -0400 (Mon, 07 Jun 2010)
New Revision: 105786

Modified:
   branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/RollBackUnitTestCase.java
Log:
Fixing test

Modified: branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/RollBackUnitTestCase.java
===================================================================
--- branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/RollBackUnitTestCase.java	2010-06-07 19:57:12 UTC (rev 105785)
+++ branches/JBPAPP_5_1/testsuite/src/main/org/jboss/test/jbossmessaging/test/RollBackUnitTestCase.java	2010-06-07 20:01:19 UTC (rev 105786)
@@ -552,7 +552,12 @@
       TopicConnectionFactory topicFactory = (TopicConnectionFactory) context.lookup(TOPIC_FACTORY);
       topicConnection = topicFactory.createTopicConnection();
       topicDurableConnection = topicFactory.createTopicConnection("john", "needle");
-      topicDurableConnection.setClientID("someClient");
+      if (JMSDestinationsUtil.isHornetQ())
+      {
+    	  // HornetQ doesn't support clientID associated with the user/password,
+    	  // hence we need to set it manually
+    	  topicDurableConnection.setClientID("someClient");
+      }
 
       getLog().debug("Connection to JBossMQ established.");
    }



More information about the jboss-cvs-commits mailing list