public class JettyWebApplicationContextListener extends Object implements javax.servlet.ServletContextListener
ServletContextListener
that is automatically loaded by
the BootstrapWebApplicationContextListener
.
Support specific GigaSpace based session storge when using the
jetty.sessions.spaceUrl
parameter within the (web) processing unit properties. It is
handled here since we want to setup the session support under the web application class loader
and not under the class loader that starts up jetty.
Modifier and Type | Field and Description |
---|---|
static String |
JETTY_SESSIONS_LEASE
The lease of the
SessionData that is written to the
Space. |
static String |
JETTY_SESSIONS_SAVE_PERIOD
How often an actual update of a non dirty session will be performed to the Space.
|
static String |
JETTY_SESSIONS_SCAVENGE_PERIOD
How often the scavenger thread will run in order to check for expired sessions.
|
static String |
JETTY_SESSIONS_TIMEOUT
Controls, using a deployment property, the timeout value of sessions.
|
static String |
JETTY_SESSIONS_URL
A deploy property that controls if Jetty will store the session on the Space.
|
Constructor and Description |
---|
JettyWebApplicationContextListener() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent) |
void |
contextInitialized(javax.servlet.ServletContextEvent servletContextEvent) |
public static final String JETTY_SESSIONS_URL
public static final String JETTY_SESSIONS_SCAVENGE_PERIOD
60 * 5
seconds (5 minutes).public static final String JETTY_SESSIONS_SAVE_PERIOD
60
seconds.public static final String JETTY_SESSIONS_LEASE
SessionData
that is written to the
Space. Set in seconds and defaults to FOREVER.public static final String JETTY_SESSIONS_TIMEOUT
public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
contextInitialized
in interface javax.servlet.ServletContextListener
public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
contextDestroyed
in interface javax.servlet.ServletContextListener
Copyright © GigaSpaces.