Question

I'm using Derby DB as storage for my Qpid broker. Trying to figure out where Derby store the data files when running as embedded db.

Anyone has a clue where the files are located or how to set the directory to use?

Was it helpful?

Solution 2

You should set the following variables:

QPID_HOME - specifies where your install of Qpid exists, used for broker lookups of files etc

QPID_WORK - defines location of all working files created by the broker including log and db (i.e. BDB if used). Note that the QPID_WORK variable defaults to the current user's home directory if not set.

OTHER TIPS

This is determined by the derby.system.home property.

Specifies the Derby system directory, which is the directory that contains subdirectories holding databases that you create and the text file derby.properties.

Each database has a corresponding directory named after the database. The file structure under this directory is documented here.

I have seen in the Derby documentation that the Derby database consists of datafiles and one service.properties file.
If you are using Netbeans and Java DB alias Derby on Windows 7, all the databases are stored in
C:\users\your_user_name\.netbeans-derby\your_database\seg0.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top