From dev-return-9816-apmail-activemq-dev-archive=activemq.apache.org@activemq.apache.org Fri Mar 14 06:40:10 2008 Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 26059 invoked from network); 14 Mar 2008 06:40:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Mar 2008 06:40:10 -0000 Received: (qmail 63021 invoked by uid 500); 14 Mar 2008 06:40:07 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 63003 invoked by uid 500); 14 Mar 2008 06:40:07 -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 62994 invoked by uid 99); 14 Mar 2008 06:40:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Mar 2008 23:40:07 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Mar 2008 06:39:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9BFA1234C098 for ; Thu, 13 Mar 2008 23:38:32 -0700 (PDT) Message-ID: <592938330.1205476712632.JavaMail.jira@brutus> Date: Thu, 13 Mar 2008 23:38:32 -0700 (PDT) From: "David Jencks (JIRA)" To: dev@activemq.apache.org Subject: [jira] Assigned: (AMQ-1618) Improper handling of container restrictions in creation of sessions In-Reply-To: <1412350280.1205318795042.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1618?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] David Jencks reassigned AMQ-1618: --------------------------------- Assignee: David Jencks > Improper handling of container restrictions in creation of sessions > ------------------------------------------------------------------- > > Key: AMQ-1618 > URL: https://issues.apache.org/activemq/browse/AMQ-1618 > Project: ActiveMQ > Issue Type: Bug > Components: Connector, Geronimo Integration > Affects Versions: 4.1.1, 5.0.0 > Environment: All > Reporter: Manu T George > Assignee: David Jencks > Fix For: 4.1.2, 5.1.0, 5.2.0 > > > In the getServerSession() method of org.apache.activemq.ra.ServerSessionPoolImpl there is an issue with the code block given below > ServerSessionImpl ss = createServerSessionImpl(); > // We may not be able to create a session due to the container > // restricting us. > if (ss == null) { > if (idleSessions.size() == 0) { > throw new JMSException("Endpoint factory did not allows to any endpoints."); > } > return getExistingServerSession(); > } > If the container restricts the creation of a session then messages should be queued to an existing session. So the check should be > if (activeSessions.size() == 0) { > throw new JMSException("Endpoint factory did not allows to any endpoints."); > } > instead of the one above -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.