You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Christos Vasilakis <cv...@gmail.com> on 2007/10/20 21:19:28 UTC

derby.properties

Hi there,
I use the startNetworkServer.sh to start the derby database. Is there any
way i can specify a default db directory for the databases. I understand
that there is a derby.system.home property which specifies just that, and it
must be defined in a derby.properties file. My question is where should i
put this derby.properties file so it can be picked up when the server boots
up using the startNetworkServer.sh script.

Any ideas?

Thanks in advance.

Christos 
-- 
View this message in context: http://www.nabble.com/derby.properties-tf4663667.html#a13322434
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Re: derby.properties

Posted by Myrna van Lunteren <m....@gmail.com>.
If you're not using hibernate, and start networkserver using a jvm
command, derby.properties file is expected to be in the directory
where you start the command from.

Maybe this page is of interest to you:
http://wiki.apache.org/db-derby/DatabaseNamesRelativeAbsolute

(Note that it is pointless to set derby.system.home in the
derby.properties file; the optional derby.properties file would be
located in the directory passed on to the java executable with
-Dderby.system.home=<path/dir>.)

Hth,
Myrna

Re: derby.properties

Posted by Stavros Kounis <sk...@gmail.com>.
Hi Christos

i use hibernate to serialize objects in derby using it in network
server mode. Database location is set in connection url


from property file:

hibernate.connection.url=jdbc:derby://localhost:1527/C:\\Program
Files\\Common Files\\Osmosis\\Paediatric\\databases\\pd;


hope that this can help you


/stavros

On 10/20/07, Christos Vasilakis <cv...@gmail.com> wrote:
>
> Hi there,
> I use the startNetworkServer.sh to start the derby database. Is there any
> way i can specify a default db directory for the databases. I understand
> that there is a derby.system.home property which specifies just that, and it
> must be defined in a derby.properties file. My question is where should i
> put this derby.properties file so it can be picked up when the server boots
> up using the startNetworkServer.sh script.
>
> Any ideas?
>
> Thanks in advance.
>
> Christos
> --
> View this message in context: http://www.nabble.com/derby.properties-tf4663667.html#a13322434
> Sent from the Apache Derby Users mailing list archive at Nabble.com.
>
>