From dev-return-28856-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Fri Oct 7 13:53:56 2011 Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 346989BD1 for ; Fri, 7 Oct 2011 13:53:56 +0000 (UTC) Received: (qmail 65850 invoked by uid 500); 7 Oct 2011 13:53:53 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 65812 invoked by uid 500); 7 Oct 2011 13:53:53 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 65774 invoked by uid 99); 7 Oct 2011 13:53:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 13:53:53 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Oct 2011 13:53:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id BC3DD2AEBE3 for ; Fri, 7 Oct 2011 13:53:29 +0000 (UTC) Date: Fri, 7 Oct 2011 13:53:29 +0000 (UTC) From: "Timothy Bish (Resolved) (JIRA)" To: dev@activemq.apache.org Message-ID: <2084197597.7970.1317995609772.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (AMQ-2643) Closing a PooledConnection does not seem to return associated sessions to the SessionPool MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AMQ-2643?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish resolved AMQ-2643. ------------------------------- Resolution: Fixed Fix Version/s: 5.6.0 Assignee: Timothy Bish Fix applied in trunk. > Closing a PooledConnection does not seem to return associated sessions to the SessionPool > ----------------------------------------------------------------------------------------- > > Key: AMQ-2643 > URL: https://issues.apache.org/jira/browse/AMQ-2643 > Project: ActiveMQ > Issue Type: Bug > Affects Versions: 5.2.0 > Reporter: Henrik Olsson > Assignee: Timothy Bish > Fix For: 5.6.0 > > Attachments: PooledSessionExhaustionTest.java, SimpleTest.java > > > Reading the documentation at http://java.sun.com/j2ee/1.4/docs/api/javax/jms/Connection.html#close() one would assume the associated session(s) would be closed/returned to the SessionPool when closing a connection: "There is no need to close the sessions, producers, and consumers of a closed connection." > But it seems if you don't also explicitly call close() on the session you will run out of Session objects in the SessionPool. > Looking at http://www.google.com/codesearch/p?hl=en#coOE0tRomSs/trunk/activemq-core/src/main/java/org/apache/activemq/pool/PooledConnection.java&d=9&l=69 trunk seems to have the same behaviour. -- 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