{"action":"opened","issue":{"url":"https://api.github.com/repos/wso2/wso2-axis2-transports/issues/157","repository_url":"https://api.github.com/repos/wso2/wso2-axis2-transports","labels_url":"https://api.github.com/repos/wso2/wso2-axis2-transports/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/wso2/wso2-axis2-transports/issues/157/comments","events_url":"https://api.github.com/repos/wso2/wso2-axis2-transports/issues/157/events","html_url":"https://github.com/wso2/wso2-axis2-transports/issues/157","id":319520397,"number":157,"title":"Closing the connection pool when there are issues with any connection","user":{"login":"malinthaprasan","id":1591316,"avatar_url":"https://avatars2.githubusercontent.com/u/1591316?v=4","gravatar_id":"","url":"https://api.github.com/users/malinthaprasan","html_url":"https://github.com/malinthaprasan","followers_url":"https://api.github.com/users/malinthaprasan/followers","following_url":"https://api.github.com/users/malinthaprasan/following{/other_user}","gists_url":"https://api.github.com/users/malinthaprasan/gists{/gist_id}","starred_url":"https://api.github.com/users/malinthaprasan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malinthaprasan/subscriptions","organizations_url":"https://api.github.com/users/malinthaprasan/orgs","repos_url":"https://api.github.com/users/malinthaprasan/repos","events_url":"https://api.github.com/users/malinthaprasan/events{/privacy}","received_events_url":"https://api.github.com/users/malinthaprasan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-02T11:49:11Z","updated_at":"2018-05-02T11:49:11Z","closed_at":null,"author_association":"NONE","body":"**Description:**\r\nThe code in [1] only clears the map which holds JMS connections when there are any issues with connections. We need to close individual connections as well. Otherwise, those connections will be kept as it is at the JMS server side and consume resources.\r\n\r\n```\r\n    /**\r\n     * Clear the shared connection map due to stale connections\r\n     */\r\n    private synchronized void clearSharedConnections() {\r\n        sharedConnectionMap.clear();\r\n        lastReturnedConnectionIndex = 0;\r\n    }\r\n```\r\n\r\n[1] https://github.com/wso2/wso2-axis2-transports/blob/v2.0.0-wso2v18/modules/jms/src/main/java/org/apache/axis2/transport/jms/JMSConnectionFactory.java#L565-L568\r\n\r\n\r\n"}}
{"actor":{"display_login":"malinthaprasan"}}