Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 33484 invoked from network); 20 May 2005 13:17:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 May 2005 13:17:35 -0000 Received: (qmail 68868 invoked by uid 500); 20 May 2005 13:17:25 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 68694 invoked by uid 500); 20 May 2005 13:17:24 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 68671 invoked by uid 99); 20 May 2005 13:17:24 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of david@davidkarlsen.com designates 217.13.8.30 as permitted sender) Received: from main.davidkarlsen.com (HELO smtp.davidkarlsen.com) (217.13.8.30) by apache.org (qpsmtpd/0.28) with ESMTP; Fri, 20 May 2005 06:17:22 -0700 Received: from [192.168.3.50] (smtp.i.davidkarlsen.com [192.168.3.50]) by smtp.davidkarlsen.com (Postfix) with ESMTP id 87BF010158 for ; Fri, 20 May 2005 15:17:13 +0200 (CEST) Message-ID: <428DE354.3040407@davidkarlsen.com> Date: Fri, 20 May 2005 15:17:08 +0200 From: "David J. M. Karlsen" Organization: davidkarlsen.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: nb, no, nn, en MIME-Version: 1.0 To: commons-user@jakarta.apache.org Subject: [transaction] Duplicate TX id's Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi! I keep getting ResourceManagerExceptions with "Duplicate transaction id". I took a look at the implementation of FileResourceManager - and generatedUniqueID only returns system.getCurrentMillis() - which isn't random enough in a multithreaded environment. This should probably be changed into a UUID algorithm or something. Also - the LoggerInterface has a createLogger method - but this is an instance method - so the logging stuff should probably be changed into a factory that creates logger of a specified type? I also miss a LoggerFacade for jakarta's own Commons Logging (which would make the other classes redundant). Anyone? -- David J. M. Karlsen - +47 90 68 22 43 http://www.davidkarlsen.com http://mp3.davidkarlsen.com --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org