In a WebSphere Application Server Version 5 or later base or Network Deployment environment, you can override the default session manager with the ObjectGrid session manager.
The ObjectGrid session manager can run in any Java 2 Platform, Enterprise Edition (J2EE) Version 1.3 or later environment. The session manager does not depend on WebSphere application programming interfaces, so various versions of WebSphere Application Server, WebSphere Extended Deployment, and third-party application servers can be supported.
The ObjectGrid session manager manages sessions for its associated applications. It can create and manage the life cycle HTTP sessions for the applications. Sessions invalidate based on a time out or explicit servlet or JavaServer Pages (JSP) call. Session listeners that are associated with the session or Web application can be invoked.
The ObjectGrid session manager can work in environments that do not support affinity, for example, through a load balancer tier that distributes requests to the application server tier.
The ObjectGrid session manager persists its sessions in an ObjectGrid instance. This instance can be a local instance on a single application server, or can be fully replicated, clustered, and partitioned across many application servers. With replication, clustering, and partitioning, you can provide HTTP session failover support for your application servers.
The ObjectGrid session manager introduces itself into the request path as a servlet filter. You can add this servlet filter to your Web application with tooling that comes with WebSphere Extended Deployment. You can also add the filters manually to the Web deployment descriptor in your applications.
The filter gets called before the target servlet or JavaServer Pages (JSP) file in the target application on the request path receives control. The filter intercepts the HTTPRequest and HTTPResponse objects and wraps them with its own implementation.
The filter implementation intercepts all HTTP session related calls that are made on the HTTPRequest and HTTPResponse objects. The ObjectGrid Session manager handles these requests by creating and maintaining sessions and their life cycles, including time out-based invalidations and listeners for session invalidations. The underlying J2EE server implementation for session management is not used.