Details
-
New Feature
-
Resolution: Fixed
-
Major
-
None
-
3.11
-
None
Description
It should be possible to automatically start the new archive database.
This database is shared between the ArcRepository and the GUIWebServer and is therefore an external database which therefore has to be started before the ArcRepository or the GUIWebServer.
This could be done with a script similar to the following:
export CLASSPATH=installDir/lib/db/derby.jar:installDir/lib/db/derbynet.jar;
java -cp $CLASSPATH org.apache.derby.drda.NetworkServerControl start -p port
where 'installDir' is the installation directory for the deploy and 'port' is a setting.
Also for this to be able to work properly in the test environments the 'port' must be automatically generated in the same way as the settings:
settings.common.jmx.port
settings.common.jmx.rmiPort
settings.harvester.harvesting.heritrix.guiPort
settings.harvester.harvesting.heritrix.jmxPort
For doing this in a better way I suggest that the database url is split into several settings. It currently has the following value for a external database:
jdbc:derby://'machine':'port'/'directory'.
This should become the settings (with corresponding default values):
<database>
<machine>localhost</machine>
<port>1527</port>
<directory>adminDB</directory>
</database>