Saved Session State in GlassFish v3 Prelude

  • 4,247 views
Uploaded on

A description of how GlassFish v3 prelude provides saved session state

A description of how GlassFish v3 prelude provides saved session state

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
No Downloads

Views

Total Views
4,247
On Slideshare
0
From Embeds
0
Number of Embeds
0

Actions

Shares
Downloads
40
Comments
0
Likes
1

Embeds 0

No embeds

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
    No notes for slide

Transcript

  • 1. GlassFish v3 Prelude: Save Session State jan .l uehe@sun .com November 6, 2008
  • 2. 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
  • 3. 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
  • 4. 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
  • 5. Integration with NetBeans
  • 6. Integration with GlassFish Plugin for Eclipse
  • 7. Summary GF v3 Prelude simplifies your development cycles and makes you more productive by allowing you to preserve HTTP sessions across application redeployments.
  • 8. 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
  • 9. GlassFish v3 Prelude: Save Session State jan .l uehe@sun .com November 6, 2008