*/
public Database() {
theLog = Logfile.getInstance(Configuration.getProperty("Home") + Configuration.getProperty("Database.Logfile"));
- theLog.printDebugInfo("-- made database");
+ theLog.printDebugInfo("-- inside database");
String database_username=Configuration.getProperty("Database.Username");
String database_password=Configuration.getProperty("Database.Password");
String database_host=Configuration.getProperty("Database.Host");
templateObjektString = Configuration.getProperty("ServletModule.Breaking.ObjektTemplate");
templateConfirmString = Configuration.getProperty("ServletModule.Breaking.ConfirmTemplate");
try {
- mainModule = new ModuleBreaking(DatabaseBreaking.getInstance());
+ theLog.printDebugInfo("---- trying to get dbb");
+ DatabaseBreaking dbb = DatabaseBreaking.getInstance();
+ theLog.printDebugInfo("---- got dbb");
+ mainModule = new ModuleBreaking(dbb);
+ theLog.printDebugInfo("---- got mod");
}
catch (StorageObjectException e) {
theLog.printDebugInfo("ServletModuleBreaking konnte nicht initialisiert werden");
private DatabaseBreaking() throws StorageObjectException
{
super();
+ theLog.printDebugInfo("-- outside database");
this.cache = new HashMap();
this.theTable="breaking";
try {
this.theEntityClass = Class.forName("mir.entity.EntityBreaking");
}
catch (Exception e) { throw new StorageObjectException(e.toString()); }
+
+ theLog.printDebugInfo("-- leaving dbb");
}