Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 44E486FFC for ; Tue, 7 Jun 2011 18:06:54 +0000 (UTC) Received: (qmail 66678 invoked by uid 500); 7 Jun 2011 18:06:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 66465 invoked by uid 500); 7 Jun 2011 18:06:50 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 66456 invoked by uid 99); 7 Jun 2011 18:06:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 18:06:50 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.30.64] (HELO qmta07.emeryville.ca.mail.comcast.net) (76.96.30.64) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Jun 2011 18:06:41 +0000 Received: from omta02.emeryville.ca.mail.comcast.net ([76.96.30.19]) by qmta07.emeryville.ca.mail.comcast.net with comcast id t5td1g0040QkzPwA766HMl; Tue, 07 Jun 2011 18:06:17 +0000 Received: from [192.168.1.201] ([69.143.109.145]) by omta02.emeryville.ca.mail.comcast.net with comcast id t66G1g00U38FjT18N66HaT; Tue, 07 Jun 2011 18:06:18 +0000 Message-ID: <4DEE6899.9070805@christopherschultz.net> Date: Tue, 07 Jun 2011 14:06:17 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: DB password in context.xml References: In-Reply-To: X-Enigmail-Version: 1.2a1pre Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Umesh, On 6/7/2011 11:44 AM, Umesh Bhatt wrote: > I want to keep DB password in encrypted form in context.xml and > decrypt it in my application before calling ds.getConnection(). > Please let me know how to achieve it. Here is a distillation of all the arguments (and flawed solutions) that have floated around the archives: http://wiki.apache.org/tomcat/FAQ/Password - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3uaJkACgkQ9CaO5/Lv0PDciwCfXEVHwrHMel5q7HGK7ofGSeLg LgoAoKG9RY71LoXhMCaZShSm256VA9l3 =6HSg -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org