GigaSpaces XAP 9.7.2 API

org.openspaces.pu.container.jee.jetty
Class JettyWebApplicationContextListener

java.lang.Object
  extended by org.openspaces.pu.container.jee.jetty.JettyWebApplicationContextListener
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener

public class JettyWebApplicationContextListener
extends Object
implements javax.servlet.ServletContextListener

An jetty specific 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.

Author:
kimchy

Field Summary
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 Summary
JettyWebApplicationContextListener()
           
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
           
 void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JETTY_SESSIONS_URL

public static final String JETTY_SESSIONS_URL
A deploy property that controls if Jetty will store the session on the Space. Just by specifying the url it will automatically enable it.

See Also:
Constant Field Values

JETTY_SESSIONS_SCAVENGE_PERIOD

public static final String JETTY_SESSIONS_SCAVENGE_PERIOD
How often the scavenger thread will run in order to check for expired sessions. Set in seconds and defaults to 60 * 5 seconds (5 minutes).

See Also:
Constant Field Values

JETTY_SESSIONS_SAVE_PERIOD

public static final String JETTY_SESSIONS_SAVE_PERIOD
How often an actual update of a non dirty session will be performed to the Space. Set in seconds and defaults to 60 seconds.

See Also:
Constant Field Values

JETTY_SESSIONS_LEASE

public static final String JETTY_SESSIONS_LEASE
The lease of the SessionData that is written to the Space. Set in seconds and defaults to FOREVER.

See Also:
Constant Field Values

JETTY_SESSIONS_TIMEOUT

public static final String JETTY_SESSIONS_TIMEOUT
Controls, using a deployment property, the timeout value of sessions. Set in minutes.

See Also:
Constant Field Values
Constructor Detail

JettyWebApplicationContextListener

public JettyWebApplicationContextListener()
Method Detail

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent servletContextEvent)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.