Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 13333 invoked from network); 16 Mar 2007 07:33:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 Mar 2007 07:33:44 -0000 Received: (qmail 24129 invoked by uid 500); 16 Mar 2007 07:33:51 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 23832 invoked by uid 500); 16 Mar 2007 07:33:50 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 23821 invoked by uid 99); 16 Mar 2007 07:33:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 00:33:50 -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 (herse.apache.org: domain of boliqiu@gmail.com designates 64.233.162.229 as permitted sender) Received: from [64.233.162.229] (HELO nz-out-0506.google.com) (64.233.162.229) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 Mar 2007 00:33:38 -0700 Received: by nz-out-0506.google.com with SMTP id z3so167776nzf for ; Fri, 16 Mar 2007 00:33:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole; b=Mj6DlvHCvwB1liK+CRk648jXW6kqKBAZ6nnuzPZu8l4YeeanUjSZkoAH+BhPPxjtDR2i7EDzvALiQbJQG7x7XCF/Q4geOfICYC6o11LkjLqaM4NtEerm+eDfh0sSQ80Qs+ctRd+u5hbIqJjfFmXhlLo7jhKRez+ZfCVltMyOVpQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:from:to:subject:date:message-id:mime-version:content-type:x-mailer:thread-index:x-mimeole; b=UfZMlJnxJn6fxPlbG6ZDwfoWCehPdKvUtziz65qBfvJQIAaxxZxswX8EcbS93iJR6Zb0wLfW//KWv4syNz+ZPQT9q8tEVS3s2FHivkbaExZAh4lyt0eG2zVSR5+CUtbNuFV6o4gD0GodmgxFjDkhGHcvF+HbNf6tdReuPbEuHg0= Received: by 10.35.79.3 with SMTP id g3mr3510524pyl.1174030397762; Fri, 16 Mar 2007 00:33:17 -0700 (PDT) Received: from wusoftkevin ( [221.219.224.206]) by mx.google.com with ESMTP id u2sm3360649pyb.2007.03.16.00.33.16; Fri, 16 Mar 2007 00:33:17 -0700 (PDT) From: "Kevin Wu" To: Subject: question about derby database location Date: Fri, 16 Mar 2007 15:32:15 +0800 Message-ID: <003701c7679d$3a0ff840$69c5fea9@wusoftkevin> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0038_01C767E0.48333840" X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcdnnTgnvFO2e13fSD2XtNK+BLyQuQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. ------=_NextPart_000_0038_01C767E0.48333840 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I have a java web application on a virtual host with Tomcat. I do not want to set my embedded derby database's home by absolutely path. I hope it can location in the web application's root directory. But when I set the URL like this jdbc:derby:DBTest;create=true. The DBTest database always been created in tomcat's bin directory. Because I'm not sure the relationship with the host's tomcat directory and my application location, I don't know what could I do, it can easily locate in my own web application. ------=_NextPart_000_0038_01C767E0.48333840 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I have a java web application on a virtual host = with Tomcat.

I do not want to set my embedded derby = database’s home by absolutely path. I hope it can location in the web = application’s root directory.

But when I set the URL like this = jdbc:derby:DBTest;create=3Dtrue. The DBTest database = always been created in tomcat’s bin directory.

Because I’m = not sure the relationship with the host’s tomcat directory and my application = location,

I don’t know = what could I do, it can easily locate in my own web = application.

 

------=_NextPart_000_0038_01C767E0.48333840--