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

PooledConnectionFactory does not allow disabling JMX on GenericKeyObjectPool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 5.12.1, 5.13.0
    • None
    • None
    • Patch Available
    • Patch, Important

    Description

      initConnectionPool does not allow us to configure the GenericKeyObjectPool.
      Suggestion:
      PooledConnectionFactory

      private GenericKeyedObjectPoolConfig config;
      public void setBasePoolConfig(final GenericKeyedObjectPoolConfig config) {
              this.config = config;
      }
      
      public void initConnectionsPool() {
           if (this.connectionsPool == null) {
                  this.connectionsPool = new GenericKeyedObjectPool<ConnectionKey, ConnectionPool>(blah, config==null?new GenericKeyedObjectPoolConfig():config);
           }
      }
      
      protected ConnectionPool createConnectionPool(Connection connection) {
              return new ConnectionPool(connection, config);
          }
      

      ConnectionPool

      public ConnectionPool(Connection connection) {
            this(connection, new GenericKeyedObjectPoolConfig());
      }
      
      public ConnectionPool(Connection connection, GenericKeyedObjectPoolConfig config) {
            this.connection = wrap(connection);
            this.sessionPool = new GenericKeyedObjectPool<SessionKey, SessionHolder>(blah, config==null?new GenericKeyedObjectPoolConfig():config);
      }
      

      Attachments

        1. patchfile.txt
          4 kB
          Aravind Chennuru

        Activity

          People

            cshannon Christopher L. Shannon
            Aravind.Chennuru Aravind Chennuru
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: