db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nuno Carvalho <nuno...@di.fc.ul.pt>
Subject Re: List existing databases
Date Fri, 27 Jul 2007 10:44:33 GMT
Hi all,

thanks for all the answers!

I'm working inside the derby engine and I found a way to do this. I  
found that the BasicDatabase.java receives some properties when its  
booted and one of them (derby.__rt.serviceDirectory) has the full  
path of the database in the directory service, so I get the database  
name from it.

Can you tell me if this is save? Is there a more clean way to get the  
database name in the source code?

Thanks for all your help!


On Jul 26, 2007, at 1:35 , Dag H. Wanvik wrote:

> Nuno Carvalho <nunomrc@di.fc.ul.pt> writes:
>> Hi all,
>> I need to list the existing databases of derby. Can someone help me
>> on this? Is there a way to query the list of available created
>> databases or is this information is this information available inside
> The databases are booted individually inside a Derby system. The
> databases are essentially self contained. Even inspecting the file
> system under the default location ${derby.system.home} doesn't
> necessarily find all databases created, since they may be created and
> accessed using explicit paths. It would be possible to list databases
> *booted* in the present Derby system, but as far as I know there is no
> such functionality.
> Dag

Nuno Carvalho
University of Lisbon, Portugal

View raw message