Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 98426 invoked from network); 12 Mar 2008 10:48:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Mar 2008 10:48:08 -0000 Received: (qmail 94494 invoked by uid 500); 12 Mar 2008 10:48:05 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 94325 invoked by uid 500); 12 Mar 2008 10:48:04 -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 94316 invoked by uid 99); 12 Mar 2008 10:48:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Mar 2008 03:48:04 -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; Wed, 12 Mar 2008 10:47:24 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 0D75A234C092 for ; Wed, 12 Mar 2008 03:46:35 -0700 (PDT) Message-ID: <1412350280.1205318795042.JavaMail.jira@brutus> Date: Wed, 12 Mar 2008 03:46:35 -0700 (PDT) From: "Manu T George (JIRA)" To: dev@activemq.apache.org Subject: [jira] Created: (AMQ-1618) Improper handling of container restrictions in creation of sessions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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: 5.0.0, 4.1.1 Environment: All Reporter: Manu T George 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.