activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bhooshan Mogal (Created) (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMQ-3711) Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory constructor in the CPP client API (However, it works correctly when passed through the createConnection method)
Date Thu, 09 Feb 2012 17:21:59 GMT
Credentials are not propagated correctly when passed through the ActiveMQConnectionFactory
constructor in the CPP client API (However, it works correctly when passed through the createConnection
method)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AMQ-3711
                 URL: https://issues.apache.org/jira/browse/AMQ-3711
             Project: ActiveMQ
          Issue Type: Bug
          Components: CMS (C++ client)
    Affects Versions: 5.5.1
         Environment: RHEL4 on both client and server 

I am using CMS v3.4.1
            Reporter: Bhooshan Mogal
            Priority: Minor


I tried to connect to the an ActiveMQ server using the C++ client API. However, when I pass
the credentials (username and password) only through the ActiveMQConnectionFactory  constructor
and not through the createConnection method, the password is not shows up as null in the server
logs.
So,

 auto_ptr<ActiveMQConnectionFactory> connectionFactory(
                new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
            try{
                connection = connectionFactory->createConnection();
                connection->start();
            } catch( CMSException& e ) {
                e.printStackTrace();
                throw e;
            }
results in the server receiving the password as null. However, when the credentials are passed
through the createConnection method as well, like - 
auto_ptr<ActiveMQConnectionFactory> connectionFactory(
                new ActiveMQConnectionFactory( brokerURI, "username", "password" ) );
            try{
                connection = connectionFactory->createConnection("username", "password");
                connection->start();
            } catch( CMSException& e ) {
                e.printStackTrace();
                throw e;
            }

the server receives the password correctly.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message