Return-Path: X-Original-To: apmail-cayenne-user-archive@www.apache.org Delivered-To: apmail-cayenne-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 039029642 for ; Tue, 24 Jan 2012 11:38:58 +0000 (UTC) Received: (qmail 98215 invoked by uid 500); 24 Jan 2012 11:38:57 -0000 Delivered-To: apmail-cayenne-user-archive@cayenne.apache.org Received: (qmail 97942 invoked by uid 500); 24 Jan 2012 11:38:57 -0000 Mailing-List: contact user-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cayenne.apache.org Delivered-To: mailing list user@cayenne.apache.org Received: (qmail 97651 invoked by uid 99); 24 Jan 2012 11:38:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 11:38:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of w.zurborg@rheagroup.com designates 188.118.16.2 as permitted sender) Received: from [188.118.16.2] (HELO mail.rheagroup.com) (188.118.16.2) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jan 2012 11:38:49 +0000 X-Spam-Level: X-Footer: cmhlYWdyb3VwLmNvbQ== Received: from localhost ([127.0.0.1]) by mail.rheagroup.com (using TLSv1/SSLv3 with cipher AES256-SHA (256 bits)) for user@cayenne.apache.org; Tue, 24 Jan 2012 12:38:27 +0100 Message-ID: <4F1E9831.2050709@rheagroup.com> Date: Tue, 24 Jan 2012 12:38:25 +0100 From: Wernke zur Borg User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: user@cayenne.apache.org Subject: Re: CommonsJdbcEventLogger does not print the queries References: <4F1E6D43.5060800@rheagroup.com> <4F1E8129.3060107@rheagroup.com> <4F1E9494.8060306@rheagroup.com> In-Reply-To: Content-Type: multipart/alternative; boundary="------------030600000103000402060001" X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, hits=0.0 required=3.5 tests=AWL: 0.040,BAYES_00: -1.665,HTML_MESSAGE: 0.001, TOTAL_SCORE: -1.624,autolearn=ham --------------030600000103000402060001 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On 2012-01-24 12=3A26=2C Christian Grobmeier wrote=3A =3E Hello Wernke =28sorry for misspelling your name in my first response=29= =2C =3E =3E On Tue=2C Jan 24=2C 2012 at 12=3A23 PM=2C Wernke zur Borg =3E =3Cw=2Ezurborg=40rheagroup=2Ecom=3E wrote=3A =3E=3E Class JdbcAdapter has this=3A =3E=3E =3E=3E =40Inject =3E=3E protected JdbcEventLogger logger=3B =3E I have not done this before=2C but in most cases of DI you need to have= =3E appropriate setters/getters to make the injection work=2E Doi you have= =3E them=3F =28f=2Ee=2E getLogger=2C setLogger =28JdbcEventLogger logger=29= =29 =3E Note that it does work with the original JdbcAdapter even though it does=20= not have a setter for the logger=2E Only when I inject my own subclass the logger injection does not take place= =2E =3E=3E My JdbcAdapter subclass apparently does not get a logger injected -= =3E=3E getLogger=28=29 returns null=2E =3E=3E =3E=3E Since I am not yet familiar with DI=2C I do not know how to get the= logger =3E=3E injected=2E =3E=3E =3E=3E I do have this=2C although it might not be needed =28it does not mak= e any =3E=3E difference=29=3A =3E=3E =3E=3E Module m =3D new Module=28=29 =7B =3E=3E public void configure=28Binder binder=29 =7B =3E=3E binder=2Ebind=28JdbcEventLogger=2Eclass=29=2Eto=28CommonsJdbc= EventLogger=2Eclass=29=3B =3E=3E =2E=2E=2E =3E=3E =3E=3E Thanks=2C Wernke =3E=3E =3E=3E =3E=3E =3E=3E This email =28including any attachments=29 may contain confidential= and/or privileged =3E=3E information or information otherwise protected from disclosure=2E=20= If you are not the =3E=3E intended recipient=2C please notify the sender immediately=2C do not= copy this message =3E=3E or any attachments and do not use it or any purpose or disclose its= content to any =3E=3E person=2C but delete this message and any attachments from your syst= em=2E =3E=3E RHEA System S=2EA=2E =28RHEA=29 disclaims any and all liability if t= his email transmission =3E=3E was virus corrupted=2C altered or falsified=2E =3E=3E =3E=3E If a Non Disclosure Agreement =28NDA=29 exists between RHEA and the= receiving =3E=3E organization=2C then all contents shall be considered proprietary an= d covered under =3E=3E the NDA=2E =3E=3E =3E=3E =3E =3E --=20 /Wernke zur Borg *Rhea System S=2EA=2E* Robert-Bosch-Str=2E 7 64293 Darmstadt / Germany Tel=2E +49-6151-8709591/ This email =28including any attachments=29 may contain confidential and/or= privileged information or information otherwise protected from disclosure=2E If you a= re not the intended recipient=2C please notify the sender immediately=2C do not copy t= his message or any attachments and do not use it or any purpose or disclose its content= to any person=2C but delete this message and any attachments from your system=2E= RHEA System S=2EA=2E =28RHEA=29 disclaims any and all liability if this ema= il transmission was virus corrupted=2C altered or falsified=2E If a Non Disclosure Agreement =28NDA=29 exists between RHEA and the receivi= ng organization=2C then all contents shall be considered proprietary and cover= ed under the NDA=2E --------------030600000103000402060001--