/**
* Intialize the StandardsSuggestionService and place it in the ServletContext
* where it can be found by the Rest Service Clases.
*
* @param config Description of the Parameter
* @exception ServletException Description of the Exception
*/
public void init(ServletConfig config)
throws ServletException {
log.info (getDateStamp() + " CommCoreServlet starting");
String initErrorMsg = "";
try {
super.init(config);
} catch (Throwable exc) {
initErrorMsg = "CommCoreServlet Initialization Error:\n " + exc;
log.error (initErrorMsg);
}
// initialize the AdnStandardsManager
String commCoreStandardsPath = getAbsolutePath ((String)getServletContext().getInitParameter("commCoreStandardsPath"));
if (commCoreStandardsPath == null) {
throw new ServletException("init parameter \"commCoreStandardsPath\" not found in servlet context");
}
CommCoreServiceHelper commCoreServiceHelper = null;
try {
commCoreServiceHelper = new CommCoreServiceHelper(commCoreStandardsPath);
} catch (Exception e) {
log.error("Failed to initialize StdDocument.", e);
}
if (commCoreServiceHelper != null)
getServletContext().setAttribute("commCoreServiceHelper", commCoreServiceHelper);
else
throw new ServletException ("Failed to initialize StdDocument");
log.info (getDateStamp() + " CommCoreServlet completed.\n");
}
CommCoreServlet.java 文件源码
java
阅读 30
收藏 0
点赞 0
评论 0
项目:joai-project
作者:
评论列表
文章目录