Class<?> initializerClass = Class.forName(initializerClassName);
Initializer init = (Initializer) initializerClass.newInstance();
if (init instanceof WebInitializer) {
server = init.getServer(getServletContext());
} else {
throw new InitializeException(
"You must supply a WebInitializer class name as an init param for MessagingServlet");
}
} catch (Exception e) {
LogWriter.error(getClass(), "Failed to initialize RAMFServer: " + e, e);
}