Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 17922 invoked from network); 1 Jul 2008 07:13:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jul 2008 07:13:56 -0000 Received: (qmail 71680 invoked by uid 500); 1 Jul 2008 07:13:57 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 71611 invoked by uid 500); 1 Jul 2008 07:13:57 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 71579 invoked by uid 99); 1 Jul 2008 07:13:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 00:13:56 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of thorsten.scherler.ext@juntadeandalucia.es designates 217.12.18.114 as permitted sender) Received: from [217.12.18.114] (HELO mta.juntadeandalucia.es) (217.12.18.114) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Jul 2008 07:13:05 +0000 Received: from [10.240.225.254] (helo=mail.juntadeandalucia.es) by guadix3.juntadeandalucia.es with esmtps (TLSv1:AES256-SHA:256) (Exim 4.60) (envelope-from ) id 1KDa2K-0007ZT-OW for dev@cocoon.apache.org; Tue, 01 Jul 2008 09:12:24 +0200 Received: from [10.240.192.30] by mail.juntadeandalucia.es with esmtpa (Exim 4.69) (envelope-from ) id 1KDa2K-0008K0-9X for dev@cocoon.apache.org; Tue, 01 Jul 2008 09:12:24 +0200 Subject: Concurrency and input-modules From: Thorsten Scherler To: dev@cocoon.apache.org Content-Type: text/plain Date: Tue, 01 Jul 2008 09:11:30 +0200 Message-Id: <1214896290.22959.35.camel@thorsten-desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.22.2 Content-Transfer-Encoding: 7bit X-SA-Report: * -0.2 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Spam-Score: -0.2 (/) X-Spam-Score-Int: -1 X-Virus-Checked: Checked by ClamAV on apache.org Hi all, http://marc.info/?t=120180448900001&r=1&w=2 The problem that I encountered is that the locationmap is throwing an error as soon as there are concurrent user. The locationmap is a input-module that we have over in forrest. The problem seems to lie in the fact the getAttribute method is not synchronized http://svn.apache.org/viewvc/forrest/trunk/main/java/org/apache/forrest/locationmap/LocationMapModule.java?r1=653732&r2=672756&diff_format=h above change will fix the problems with concurrency but this raises the question whether there is a better way to do it and whether ALL input-modules are not thread saved. TIA for any thoughts. salu2 -- Thorsten Scherler thorsten.at.apache.org Open Source Java consulting, training and solutions