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