try {
MessageDAO messageDAO = new MessageDAO();
messageDAO.setDataSource((DataSource) this.getApplicationContext().getBean("servDataSource"));
messageDAO.setLangManager((ILangManager) this.getService(SystemConstants.LANGUAGE_MANAGER));
this._messageDao = messageDAO;
MessageSearcherDAO searcherDAO = new MessageSearcherDAO();
searcherDAO.setDataSource((DataSource) this.getApplicationContext().getBean("servDataSource"));
this._messageSearcherDao = searcherDAO;
} catch (Throwable e) {
throw new Exception(e);
}
}