Return-Path: Delivered-To: apmail-logging-log4j-user-archive@www.apache.org Received: (qmail 47619 invoked from network); 2 Apr 2008 12:38:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 12:38:01 -0000 Received: (qmail 58061 invoked by uid 500); 2 Apr 2008 12:37:59 -0000 Delivered-To: apmail-logging-log4j-user-archive@logging.apache.org Received: (qmail 58034 invoked by uid 500); 2 Apr 2008 12:37:58 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 58023 invoked by uid 99); 2 Apr 2008 12:37:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 05:37:58 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of annielaney@gmail.com designates 64.233.182.188 as permitted sender) Received: from [64.233.182.188] (HELO nf-out-0910.google.com) (64.233.182.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 12:37:17 +0000 Received: by nf-out-0910.google.com with SMTP id d3so1199731nfc.0 for ; Wed, 02 Apr 2008 05:37:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=rqJ0ea0R3T11MSyayMUQJFmbuSV+N0hD/OvtjQQljCM=; b=jpwdBefMelWwCQk+gCsv2NSMJUoIq6umjorllLC8KxFJmf+cIAvzhYP+Fld8/V3YQDG548sB1YF0hwyuW3uy0whlTL7DKadBE+PXD9fHRUguSzNGPPkehXJLhjObcOWM84212btQwcFdlpaUpnPz6ADEhHUXdBfqNBZo10RheMc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=message-id:date:from:to:subject:mime-version:content-type; b=f3WmW5SBZ19uNaFqjkxy47JSc30nXrZtXcatNS+VkBEtaqv6JuE4+15JlhLNhzsevGeKWCKytw5yTNK5CJkN5gz3BmL571jin5jORYXqWPa7R5DVm9/IAqObjXzGmpxYhQPd6LdoNmR7Mm7ti0MbWS/9rNV5JFNQhE0SkYE4PCQ= Received: by 10.78.81.20 with SMTP id e20mr27775035hub.64.1207139847748; Wed, 02 Apr 2008 05:37:27 -0700 (PDT) Received: by 10.78.141.8 with HTTP; Wed, 2 Apr 2008 05:37:27 -0700 (PDT) Message-ID: Date: Wed, 2 Apr 2008 23:37:27 +1100 From: "Annie Lane" To: log4j-user@logging.apache.org Subject: JDBCAppender and DB passwords MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_184_25414273.1207139847549" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_184_25414273.1207139847549 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi list, I'm using log4j-1.2.14 and want to play with JDBCAppender. My main concern is the fact that in my log4j.properties file I need to provide the username and password details for the database connection. How can I use JDBCAppender without having to put this information in my .properties file? Additionally, how might I inject a database connection from within my application? Say I'm developing a JEE app which contains its own connection pooling mechanisms etc. Any help/advice would be very much appreciated. Annie ------=_Part_184_25414273.1207139847549--