Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-1365

Username and password field got swapped when calling PooledConnection.createConnection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.1
    • 4.1.2, 5.1.0
    • JMS client
    • None
    • Windows XP

    Description

      When using org.apache.activemq.pool.PooledConnection createConnection(username, password), the username and password fields are swapped.

      I think the problem could be the following, based in 4.1.1 source code,

      PooledConnection.java line 77

      public synchronized Connection createConnection(String userName, String password) throws JMSException {
      ConnectionKey key = new ConnectionKey(userName, password);

      ConnectionKey.java line 30

      public ConnectionKey(String password, String userName) {
      this.password = password;
      this.userName = userName;

      Attachments

        Activity

          People

            Unassigned Unassigned
            wlam William Lam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: