Return-Path: Delivered-To: apmail-camel-dev-archive@www.apache.org Received: (qmail 54124 invoked from network); 3 Oct 2009 09:02:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 3 Oct 2009 09:02:25 -0000 Received: (qmail 12293 invoked by uid 500); 3 Oct 2009 09:02:25 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 12218 invoked by uid 500); 3 Oct 2009 09:02:24 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 12198 invoked by uid 500); 3 Oct 2009 09:02:24 -0000 Delivered-To: apmail-activemq-camel-dev@activemq.apache.org Received: (qmail 12187 invoked by uid 99); 3 Oct 2009 09:02:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Oct 2009 09:02:24 +0000 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; Sat, 03 Oct 2009 09:02:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4CF37234C004 for ; Sat, 3 Oct 2009 02:02:00 -0700 (PDT) Message-ID: <1949952469.1254560520297.JavaMail.jira@brutus> Date: Sat, 3 Oct 2009 02:02:00 -0700 (PDT) From: "Claus Ibsen (JIRA)" To: camel-dev@activemq.apache.org Subject: [jira] Updated: (CAMEL-2049) Improper configuration of MINA connector and acceptor instances; Better producer In-Reply-To: <1365139320.1254387660345.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: ae95407df07c98740808b2ef9da0087c X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/CAMEL-2049?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Claus Ibsen updated CAMEL-2049: ------------------------------- Fix Version/s: 2.0.0 1.6.2 > Improper configuration of MINA connector and acceptor instances; Better producer > -------------------------------------------------------------------------------- > > Key: CAMEL-2049 > URL: https://issues.apache.org/activemq/browse/CAMEL-2049 > Project: Apache Camel > Issue Type: Bug > Components: camel-mina > Affects Versions: 1.6.0 > Environment: Windows XP > Reporter: Dmytro Rud > Assignee: Claus Ibsen > Fix For: 1.6.2, 2.0.0 > > Attachments: MinaComponent.patch, MinaSocketProducer.java > > > A sample scenario where both MINA producer(s) and consumer(s) are used in the same route (e.g. some kind of dispatching or proxying): > from("mina:tcp://localhost:8888?lazySessionCreation=true&sync=true") > .to("mina:tcp://localhost:7777?lazySessionCreation=true&sync=true"); > from("mina:tcp://localhost:7777?lazySessionCreation=true&sync=true") > .process(/*prepare answer*/); > Due to improper configuration of MINA acceptor and connector instances in MinaComponent#createSocketEndpoint(), no more than 15 incoming threads can be served at port 8888 -- the producer becomes unable to open an outgoing session. This is actually an issue of MINA, not of Camel -- a test application written using "raw" MINA shows the same behaviour. > A solution is to apply configuration rules described, e.g., at http://mina.apache.org/configuring-thread-model.html, as done in the attached patch. > Moreover, the standard Camel-MINA producer is not thread-safe -- actually a well-known point. A second attached file contains a thread pool-based reentrant version, which can be efficiently used for TCP endpoints with both parameters 'lazySessionCreation' and 'sync' set to true. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.