Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-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 4FFC07465 for ; Mon, 26 Sep 2011 13:50:36 +0000 (UTC) Received: (qmail 17731 invoked by uid 500); 26 Sep 2011 13:50:36 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 17705 invoked by uid 500); 26 Sep 2011 13:50:36 -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 17697 invoked by uid 99); 26 Sep 2011 13:50:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2011 13:50:35 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Sep 2011 13:50:26 +0000 Received: from ucsinet23.oracle.com (ucsinet23.oracle.com [156.151.31.71]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p8QDo4Yx020370 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 26 Sep 2011 13:50:06 GMT Received: from acsmt357.oracle.com (acsmt357.oracle.com [141.146.40.157]) by ucsinet23.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p8QDo3F6007624 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 26 Sep 2011 13:50:04 GMT Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by acsmt357.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p8QDnwlo008253 for ; Mon, 26 Sep 2011 08:49:58 -0500 Received: from richard-hillegas-computer.local (/10.159.5.133) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 26 Sep 2011 06:49:58 -0700 Message-ID: <4E8082F9.1050002@oracle.com> Date: Mon, 26 Sep 2011 06:49:45 -0700 From: Rick Hillegas User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.18) Gecko/20110616 Thunderbird/3.1.11 MIME-Version: 1.0 To: Derby Discussion Subject: Re: a question about org.apache.derby.drda.NetServlet References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: ucsinet23.oracle.com [156.151.31.71] X-CT-RefId: str=0001.0A090203.4E80830E.003A,ss=1,re=0.000,fgs=0 On 9/24/11 6:09 PM, Michael Ma wrote: > Hello sir, > I have a question using derby in a web app,that is where is the > path of the database when I start derby using > org.apache.derby.drda.NetServlet . > > Thanks. > > -- > Best Regards. > Michael Hi Michael, Directory names (if they are relative file names rather than absolute paths) should resolve relative to the directory identified by the derby.system.home property, as resolved by the Derby engine code running in the servlet container. If that property is not set, it defaults to be the value of the JVM system property user.dir. I am not aware of any special resolution of database names when Derby runs in a servlet container. The rules for resolving database names are described in the Derby Developer's Guide in the section titled "Conventions for specifying the database path" and in the Derby Reference Manual in the section describing the "derby.system.home" property. Hope this helps, -Rick