public void initialize()
throws Exception
{
getLogger().debug("initialize()");
TorqueInstance instance = org.apache.torque.Torque.getInstance();
// Copy the database maps
Map<String, Database> databases = null;
if (instance.isInit())
{
databases = instance.getDatabases();
for (Database otherDatabase : databases.values())
{
getDatabaseMap(otherDatabase.getName()).copyFrom(
otherDatabase.getDatabaseMap());
}
}
// Provide the singleton instance to the static accessor
org.apache.torque.Torque.setInstance(this);
init(configFile);
// start the id brokers
if (instance.isInit())
{
for (Database otherDatabase : databases.values())
{
Database database = getDatabase(otherDatabase.getName());
if (otherDatabase.getIdBroker() != null)