public class ContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENVELOPE_CLASS_PARAM |
static java.lang.String |
INIT_PARAM
JNDI Resource to use to get the database DataSource object
<context-param>
<param-name>genormJNDIDataSource</param-name>
<param-value>java:/comp/env/jdbc/postgres</param-value>
</context-param>
|
| Constructor and Description |
|---|
ContextListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
Notification that the servlet context is about to be shut down.
|
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
Notification that the web application initialization
process is starting.
|
public static final java.lang.String INIT_PARAM
<context-param>
<param-name>genormJNDIDataSource</param-name>
<param-value>java:/comp/env/jdbc/postgres</param-value>
</context-param>
public static final java.lang.String ENVELOPE_CLASS_PARAM
public void contextInitialized(javax.servlet.ServletContextEvent sce)
javax.servlet.ServletContextListenercontextInitialized in interface javax.servlet.ServletContextListenerpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
javax.servlet.ServletContextListenercontextDestroyed in interface javax.servlet.ServletContextListener