}
try {
SettingBean setBean = null;
// sets the loginwaittimeout to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_LOGINWAITTIMEOUT"));
this.setLoginWaitTimeOut(new Integer(setBean.getSetting())
.intValue());
// sets the maxloginwait to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey("DISPATCHER_MAXLOGINWAIT"));
this.setMaxLoginWait(new Integer(setBean.getSetting()).intValue());
// sets the maxinactivetime to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_MAXINACTIVETIME"));
this.setMaxInactiveTime(new Integer(setBean.getSetting())
.intValue());
// sets the maxinactivetimebeforeremoval to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_MAXINACTIVETIMEBEFOREREMOVAL"));
this.setMaxInactiveTimeBeforeRemoval(new Integer(setBean
.getSetting()).intValue());
// sets the shutdowntime to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey("DISPATCHER_SHUTDOWNTIME"));
GregorianCalendar GC = new GregorianCalendar();
if (setBean.getSetting() != null) {
GC.setTimeInMillis(new Long(setBean.getSetting()).longValue());
this.setShutDownTime(GC);
} else {
this.setShutDownTime(null);
}
// sets the SHOWSHUTDOWNMESSAGETIME to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_SHOWSHUTDOWNMESSAGETIME"));
this.setShowShutDownMessageTime(new Integer(setBean.getSetting())
.intValue());
// sets the DEFAULTLANGUAGE to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_DEFAULTLANGUAGE"));
this.setDefaultLanguage(setBean.getSetting());
// sets the PASSWORDLIFELENGTH to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"DISPATCHER_PASSWORDLIFELENGTH"));
this.setPasswordLifeLength(new Integer(setBean.getSetting())
.intValue());
// sets the PATIENTLOG_LOG_PATIENTLISTS to the one in the database
setBean = (SettingBean) SettingFinderBase
.findByPrimaryKey(new SettingKey(
"PATIENTLOG_LOG_PATIENTLISTS"));
this.setPatientlogLogPatientlists(new Boolean(setBean.getSetting())
.booleanValue());
} catch (Exception e) {