You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@activemq.apache.org by ta...@apache.org on 2007/03/13 21:10:19 UTC
svn commit: r517846 - in /activemq/activemq-cpp/trunk/activemq-cpp/src/main:
activemq/core/ActiveMQConnectionFactory.cpp
activemq/core/ActiveMQConnectionFactory.h cms/ConnectionFactory.h
Author: tabish
Date: Tue Mar 13 13:10:18 2007
New Revision: 517846
URL: http://svn.apache.org/viewvc?view=rev&rev=517846
Log:
http://issues.apache.org/activemq/browse/AMQCPP-87
Modified:
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.cpp
activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.h
activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ConnectionFactory.h
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.cpp
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.cpp?view=diff&rev=517846&r1=517845&r2=517846
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.cpp (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.cpp Tue Mar 13 13:10:18 2007
@@ -72,9 +72,6 @@
const std::string& password )
throw ( cms::CMSException )
{
- this->setUsername( username );
- this->setPassword( password );
-
return createConnection( brokerURL, username, password, Guid::createGUIDString() );
}
@@ -85,9 +82,6 @@
const std::string& clientId )
throw ( cms::CMSException )
{
- this->setUsername( username );
- this->setPassword( password );
-
return createConnection( brokerURL, username, password, clientId );
}
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.h?view=diff&rev=517846&r1=517845&r2=517846
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/activemq/core/ActiveMQConnectionFactory.h Tue Mar 13 13:10:18 2007
@@ -72,9 +72,12 @@
* Creates a connection with the specified user identity. The
* connection is created in stopped mode. No messages will be
* delivered until the Connection.start method is explicitly
- * called.
- * @param username to authenticate with, resets internal to new value
- * @param password to authenticate with, resets internal to new value
+ * called. The username and password values passed here do not
+ * change the defaults, subsequent calls to the parameterless
+ * createConnection will continue to use the default values that
+ * were set in the Constructor.
+ * @param username to authenticate with
+ * @param password to authenticate with
* @returns a Connection Pointer
* @throws CMSException
*/
@@ -86,9 +89,12 @@
* Creates a connection with the specified user identity. The
* connection is created in stopped mode. No messages will be
* delivered until the Connection.start method is explicitly
- * called.
- * @param username to authenticate with, resets internal to new value
- * @param password to authenticate with, resets internal to new value
+ * called. The username and password values passed here do not
+ * change the defaults, subsequent calls to the parameterless
+ * createConnection will continue to use the default values that
+ * were set in the Constructor.
+ * @param username to authenticate with
+ * @param password to authenticate with
* @param clientId to assign to connection if "" then a random cleint
* Id is created for this connection.
* @returns a Connection Pointer
Modified: activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ConnectionFactory.h
URL: http://svn.apache.org/viewvc/activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ConnectionFactory.h?view=diff&rev=517846&r1=517845&r2=517846
==============================================================================
--- activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ConnectionFactory.h (original)
+++ activemq/activemq-cpp/trunk/activemq-cpp/src/main/cms/ConnectionFactory.h Tue Mar 13 13:10:18 2007
@@ -48,9 +48,12 @@
* Creates a connection with the default specified identity. The
* connection is created in stopped mode. No messages will be
* delivered until the Connection.start method is explicitly
- * called.
- * @param username to authenticate with, resets internal to new value
- * @param password to authenticate with, resets internal to new value
+ * called. The username and password values passed here do not
+ * change the defaults, subsequent calls to the parameterless
+ * createConnection will continue to use the default values that
+ * were set in the Constructor.
+ * @param username to authenticate with
+ * @param password to authenticate with
* @returns a Connection Pointer
* @throws CMSException
*/
@@ -62,9 +65,12 @@
* Creates a connection with the specified user identity. The
* connection is created in stopped mode. No messages will be
* delivered until the Connection.start method is explicitly
- * called.
- * @param username to authenticate with, resets internal to new value
- * @param password to authenticate with, resets internal to new value
+ * called. The username and password values passed here do not
+ * change the defaults, subsequent calls to the parameterless
+ * createConnection will continue to use the default values that
+ * were set in the Constructor.
+ * @param username to authenticate with
+ * @param password to authenticate with
* @param clientId to assign to connection if "" then a random cleint
* Id is created for this connection.
* @returns a Connection Pointer