Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 50128 invoked from network); 28 Aug 2008 09:00:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2008 09:00:51 -0000 Received: (qmail 72788 invoked by uid 500); 28 Aug 2008 09:00:49 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 72776 invoked by uid 500); 28 Aug 2008 09:00:48 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 72765 invoked by uid 99); 28 Aug 2008 09:00:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 02:00:48 -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 shinkan@gmail.com designates 66.249.92.175 as permitted sender) Received: from [66.249.92.175] (HELO ug-out-1314.google.com) (66.249.92.175) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 28 Aug 2008 08:59:51 +0000 Received: by ug-out-1314.google.com with SMTP id u2so1094834uge.15 for ; Thu, 28 Aug 2008 02:00:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=4jexFdqgGFxfbI6PumbkP8awtVjiB4ONzCOBj/jpJC4=; b=o6Qn81gKJg1fzSYJy2VHvXJJ1zqUCdkjdHXTb6wGd9i0XmH+NaJLv7dm/P7d08/8v9 42KpXsqq6PG1BMzxxKZB6pi2c3SZxKKbDGmbkkQKpsXx2BnC3u0MXpx1Z1xKbgVa+Npr /Ju8Q69d8Lx78MDiqjSN6EoUb+0gJ/zgs+O8o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=T0h8DreLRT6ihBqtR7vF70i69ghamTgJzTr8SDNOMdeUB4ehcSbGQCyp30+2kYKlrV FXZtUQSuO/GfjRYjKakHpKeFytEmE2VYAOq7C8yFJkFfQysPvNjnzctdUl7IKKnBirom H9ywRc4ErWj6ZJGr7h2A5peeKwC+KchForTWw= Received: by 10.67.23.5 with SMTP id a5mr3061619ugj.89.1219914009903; Thu, 28 Aug 2008 02:00:09 -0700 (PDT) Received: by 10.210.48.15 with HTTP; Thu, 28 Aug 2008 02:00:09 -0700 (PDT) Message-ID: <166af1cf0808280200g1e3c93d7j711e9bbf99311720@mail.gmail.com> Date: Thu, 28 Aug 2008 11:00:09 +0200 From: Shinkan To: "Apache Torque Users List" Subject: Programatically set torque.dsfactory..connection.url MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_1652_4833991.1219914009875" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_1652_4833991.1219914009875 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi everybody ! I encounter a quite disturbing problem with Torque. I use it over Apache Derby, and I need to set a password encrypted secure connection to my Derby base. So the resulting JDBC connection line is something like : "jdbc:derby:mybase;dataEncryption=true;bootPassword=mypass" Due to obvious security reason, I CAN NOT put this connection string on a config file for my app, or everybody would be able to read the pass, and connect to the base using other ways that my application plans to. So I MUST define the "torque.dsfactory.mybase.connection.url" somewhere else than in "Torque.properties". I tried this : Torque.init(_torquePropertiesPath); Torque.getConfiguration().setProperty("torque.dsfactory.mybase.connection.url", _secureConnectionString); But later in my app, when I use SomeTablePeer::retrieveByPk( ... ); Torque throws an SQLException error, pretending that "The url cannot be null". So I deduce this is because the "setProperty" doesn't set the torque.dsfactory.mybase.connection.url correctly ... If I put the connection string in Torque.properties, everything is OK. BUT I CAN NOT. So I would like to know how to proceed to set this connection.url without using config files ... Thanks in advance everyone ! -- Pierre. Some people, when confronted with a problem, think "I know, I'll use XML". Now they have two problems. -- Jamie Zawinski / James Robertson ------=_Part_1652_4833991.1219914009875--