From commons-dev-return-61818-apmail-jakarta-commons-dev-archive=jakarta.apache.org@jakarta.apache.org Tue Nov 02 09:48:29 2004 Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 18928 invoked from network); 2 Nov 2004 09:48:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Nov 2004 09:48:28 -0000 Received: (qmail 49749 invoked by uid 500); 2 Nov 2004 09:48:23 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 49556 invoked by uid 500); 2 Nov 2004 09:48:21 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 49543 invoked by uid 99); 2 Nov 2004 09:48:21 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [192.18.33.10] (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Tue, 02 Nov 2004 01:48:20 -0800 Received: (qmail 6076 invoked by uid 50); 2 Nov 2004 09:48:18 -0000 Date: 2 Nov 2004 09:48:18 -0000 Message-ID: <20041102094818.6075.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 32015] New: - Make CatalogBase.getCommand() thread safe X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32015 Make CatalogBase.getCommand() thread safe Summary: Make CatalogBase.getCommand() thread safe Product: Commons Version: 1.0 Alpha Platform: All OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: chain AssignedTo: commons-dev@jakarta.apache.org ReportedBy: mail@manfred-wolff.de I use commons-chain to implement filters and strategies. If several instances shared the same catalog there are problems with the getCommand() implementation, because the method itself is not thread safe and the implementation of the map also. So there are several possibilities: 1. Add a comment to the java doc, that this implementation is not thread safe. 2. Use Hashtables instead of HashMap for the commands. 3. Offer a synchronized decorator for the CatalogBase class. --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org