Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 342407

Summary: Prepare sessions to be serializable
Product: [RT] RAP Reporter: Rüdiger Herrmann <ruediger.herrmann>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3    
Version: unspecified   
Target Milestone: 1.5 M3   
Hardware: All   
OS: All   
Whiteboard:
Bug Depends on: 344434, 345232, 345594, 345595, 345604, 345637, 345699, 345842, 345865, 345954, 346053, 346055, 346062, 346063, 346443, 347478, 347908, 348554, 351175, 351641, 351966, 352102, 352926, 357769    
Bug Blocks: 341761    
Attachments:
Description Flags
Spike implementation providing session failover for a basic swt_layout demo.
none
cluster Testfixure for RAP/RWT ruediger.herrmann: iplog+

Description Rüdiger Herrmann CLA 2011-04-11 04:16:23 EDT
The servlet spec requires all session attributes to be serializable if the session is to be distributed. Currently, none of the session attributes maintained by RWT are serializable.
In order to enable RWT to be used with standard servlet clustering mechanisms, all session attributes have to be serializable.
Comment 1 Florian Waibel CLA 2011-04-20 12:47:41 EDT
Created attachment 193720 [details]
Spike implementation providing session failover for a basic swt_layout demo.

This patch contains a spike implementation of session failover (using SimpleLifeCycle).

* Introduced SerializableCompatibility and transient fields to make the content of the SessionStoreImpl serializable.
* Added basic failover detection in RWTDelegate
* Added transient localAttributes to SessionStoreImpl to hold attributes that should not be shared in a cluster (e.g. locks).
Comment 2 Florian Waibel CLA 2011-05-03 10:19:05 EDT
Created attachment 194585 [details]
cluster Testfixure for RAP/RWT

This patch contains three projects:
org.eclipse.rap.rwt.cluster.test (webapp and cluster tests)
org.eclipse.rap.rwt.cluster.testfixture (cluster test support)
org.eclipse.rap.rwt.cluster.testfixture.test (tests for the cluster test support :)

Additional dependencies:

Jetty 7 and H2 (Jetty with jdbc clustering)
plus
 org.apache.commons.codec,
 org.apache.commons.logging,
 org.apache.commons.httpclient;bundle-version="[3.0.1,3.1.0)"
Comment 3 Rüdiger Herrmann CLA 2011-05-04 04:05:47 EDT
Created bug 344661 and moved attachment from comment #2 to this bug.
Comment 4 Rüdiger Herrmann CLA 2011-10-24 04:42:54 EDT
Marking as resolved as all dependant bugs are closed.