public void init(PortletServiceConfig config) {
log.debug("Entering init");
SendMailService mailService = null;
AccountRequestDAOFactory daoFactory = null;
try {
daoFactory = (AccountRequestDAOFactory)
createPortletService(AccountRequestDAOFactory.class);
gamaClient = (TsukubaGAMARegistryService)
createPortletService(TsukubaGAMARegistryService.class);
vomrs = (VOMRSRegistryService)
createPortletService(VOMRSRegistryService.class);
mailService = (SendMailService)
createPortletService(SendMailService.class);
} catch (PortletServiceException e) {
log.error("Unable to initialize Service: " + e.getMessage());
}
this.accountRequestDao = daoFactory.getAccountRequestDAO();
requestFormDir =
config.getServletContext().getRealPath("/WEB-INF/request-def/");
if (log.isDebugEnabled()) {
log.debug("Request Form Directory: " + requestFormDir);