Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 57160 invoked from network); 5 Dec 2005 13:32:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Dec 2005 13:32:32 -0000 Received: (qmail 98339 invoked by uid 500); 5 Dec 2005 13:32:20 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 98315 invoked by uid 500); 5 Dec 2005 13:32:20 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: 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 98303 invoked by uid 99); 5 Dec 2005 13:32:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2005 05:32:20 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of boris.unckel.mlg@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Dec 2005 05:32:19 -0800 Received: (qmail 24205 invoked by uid 0); 5 Dec 2005 13:31:57 -0000 Received: from 194.149.246.10 by www41.gmx.net with HTTP; Mon, 5 Dec 2005 14:31:57 +0100 (MET) Date: Mon, 5 Dec 2005 14:31:57 +0100 (MET) From: "Boris Unckel" To: "Jakarta Commons Developers List" MIME-Version: 1.0 References: <439413E3.1070307@odi.ch> Subject: Re: [logging] J2EE resource adapter X-Priority: 3 (Normal) X-Authenticated: #143822 Message-ID: <16836.1133789517@www41.gmx.net> X-Mailer: WWW-Mail 1.6 (Global Message Exchange) X-Flags: 0001 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, > > IMHO you're better off implementing such a functionality for a > > specific logger implementation and enable it in that configuration. > > > > Thoughts? > > > > - J�rg > > > > J�rg, thanks for your feedback. I know that it is just a wrapper. That's > an advantage in my opinion. Because the resource adapter could then be > used with any logging framework. The timestamp problem has also occurred > to me. It can not be solved by using Log4J directly either. I don't mean > the rar should go into the standard JCL distribution. It could be an > add-on package. > > Ortwin I think this is a bad idea. Not in sense of the technical design/implementation, but looking at the use-case: To document business transactions you have to collect informations about them. I am working at a IT center for banks. A simple transaction could modifiy an account and the customer who owns the account. I would have to document three things: the usecase (changing name becaus of marriage), the id of the account, the id of the customer and old/new value of his/her name. Doing this with a logging framework would mean to pass everthing to a String, we could discuss csv or a readable form (4711,2323,changename,maier,schmidt or CustomerID[4711] AccountId[2323] UseCase[changename] OldValue[Maier] NewValue[Schmidt]). Having these things in a file is a bad idea in my opinion. This is a classic case for a structured persistence, a database. One part is a very good idea: To establish a RAR Handler/Appender for logging (meant as classic logging for debug/info/error program information). This has a technical reason: File access is limited by the J2EE specification (most vendors allow more, but the spec describes restricted access), see [1] section 6.2ff, especially 6.2.3. To conform to J2EE one has to use a Resource Adaptor for logging. I know that this is different to actual practice and technical restrictions of J2EE Application server implementations, but may change in future. I.E. when the security permissions are enforced by the AppServers by Code, not by properties. Regards Boris [1] http://java.sun.com/j2ee/j2ee-1_4-fr-spec.pdf --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org