com.createtank.elemenope
Class ElemenopeStartupServlet
java.lang.Object
javax.servlet.GenericServlet
com.createtank.elemenope.ElemenopeStartupServlet
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig
public class ElemenopeStartupServlet
- extends javax.servlet.GenericServlet
This is a Servlet class to invoke elemenope system initialization
within a web or application server environment.
It offers Singleton static method calls to obtain results and provide
other functionality.
It must be passed the following parameters:
- configClass
- configuration class implementation (fully qualified java class name)
e.g. com.createtank.elemenope.ElemenopeStandardConfiguration
- configFile
- path to elemenope configuration file
e.g. /opt/appname/conf/elemenope.xml
- initializationGroup*
- initialization group name
may have multiple entries
each entry parameter name must start with the exact string "initializationGroup"
all values from such named parameters will be configured
e.g. name=initializationGroupModuleA value=ModuleA --> "ModuleA" init group will be configured
e.g. name=initializationGroupModuleB value=ModuleB --> "ModuleB" init group will be configured
- log4jConfigFile
- log4j config file (support for .properties file only)
e.g. /opt/appname/conf/appname.log4j.properties
- log4jWatchInterval
- log4j watch interval (in millis.)
e.g. 10000 = 10 seconds
An example if ElemenopeStartupServlet usage can be found within the elemenope webapp download.
See downloads.
- Author:
- John Joseph Roets [joe@createtank.com]
- See Also:
- Serialized Form
| Methods inherited from class javax.servlet.GenericServlet |
getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ElemenopeStartupServlet
public ElemenopeStartupServlet()
init
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
- Specified by:
init in interface javax.servlet.Servlet- Overrides:
init in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
getComponents
public static ElemenopeComponents getComponents(java.lang.String initializationGroup)
service
public void service(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res)
throws javax.servlet.ServletException,
java.io.IOException
- Specified by:
service in interface javax.servlet.Servlet- Specified by:
service in class javax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
java.io.IOException
destroy
public void destroy()
- Specified by:
destroy in interface javax.servlet.Servlet- Overrides:
destroy in class javax.servlet.GenericServlet