Saved Session State in GlassFish v3 Prelude
Upcoming SlideShare
Loading in...5
×
 

Saved Session State in GlassFish v3 Prelude

on

  • 7,215 views

A description of how GlassFish v3 prelude provides saved session state

A description of how GlassFish v3 prelude provides saved session state

Statistics

Views

Total Views
7,215
Views on SlideShare
7,193
Embed Views
22

Actions

Likes
1
Downloads
39
Comments
0

1 Embed 22

http://www.slideshare.net 22

Accessibility

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Saved Session State in GlassFish v3 Prelude Saved Session State in GlassFish v3 Prelude Presentation Transcript

  • GlassFish v3 Prelude: Save Session State jan .l uehe@sun .com November 6, 2008
  • Motivation • redeploy = undeploy + deploy • Undeploy: > Removes any and all traces of a web application (including its classloader, compiled JSPs, file- persisted HTTP sessions, etc.) > Destroys any active HTTP sessions • HTTP sessions will need to be recreated following a redeployment • Tedious during development cycles
  • Retain HTTP sessions across redeployments • GlassFish v3 Prelude adds support for preserving HTTP sessions across redeploys • Example usage: asadmin redeploy --properties keepSessions=true --name myapp myapp.war • Active sessions are stored in memory in serialized form for the duration of the redeployment • Will be deserialized using the classloader of the redeployed application • Classes used as session attribute values may evolve only in backwards compatible fashion
  • Retain HTTP sessions across redeployments (cont.) • Leveraged by NetBeans Deploy on change feature: > Instantly redeploys application as soon as one of its class files or descriptors has changed > Requires directory based deployment
  • Integration with NetBeans
  • Integration with GlassFish Plugin for Eclipse
  • Summary GF v3 Prelude simplifies your development cycles and makes you more productive by allowing you to preserve HTTP sessions across application redeployments.
  • Resources • https://glassfish.dev.java.net/ • https://glassfishplugins.dev.java.net/eclipse34 • webtier@glassfish.dev.java.net • http://forums.java.net/jive/forum.jspa?forumID=138
  • GlassFish v3 Prelude: Save Session State jan .l uehe@sun .com November 6, 2008