You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Aravind Chennuru (JIRA)" <ji...@apache.org> on 2015/10/01 21:31:26 UTC

[jira] [Comment Edited] (AMQ-5990) PooledConnectionFactory does not allow disabling JMX on GenericKeyObjectPool

    [ https://issues.apache.org/jira/browse/AMQ-5990?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14940272#comment-14940272 ] 

Aravind Chennuru edited comment on AMQ-5990 at 10/1/15 7:30 PM:
----------------------------------------------------------------

Perfect this serves my purpose. Thanks.
[~cshannon] Do you know when activemq 5.12.1 is scheduled to be released?
Based on that date we should adjust our product release.


was (Author: aravind.chennuru):
Perfect this serves my purpose. Thanks.

> PooledConnectionFactory does not allow disabling JMX on GenericKeyObjectPool
> ----------------------------------------------------------------------------
>
>                 Key: AMQ-5990
>                 URL: https://issues.apache.org/jira/browse/AMQ-5990
>             Project: ActiveMQ
>          Issue Type: Bug
>            Reporter: Aravind Chennuru
>            Assignee: Christopher L. Shannon
>             Fix For: 5.12.1, 5.13.0
>
>         Attachments: patchfile.txt
>
>
> initConnectionPool does not allow us to configure the GenericKeyObjectPool.
> Suggestion:
> PooledConnectionFactory
> {code}
> 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);
>     }
> {code}
> ConnectionPool
> {code}
> 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);
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)