Community
Participate
Working Groups
Can RWT on OSGi be clustered? The most apparent challenge seems to be class loading issues (what else?) when deserializing session state.
Created attachment 204281 [details] Prototype With this patch, the testButtonEntryPoint test from the JettySessionFailover_Test run successfully. The changes are meant to outline an approach to control the class-loading during deserialization. It uses the fact that Jetty consults the context-loader of the current thread while deserializing a session. Upon serialization of the SessionStore, information about classes and their respective (bundle-)class-loaders is serialized along with the session data. The SessionStore is deserialized before any other object. This circumstance allows to read the class-loader-information and equip the context-loader with it so that supsequent attempts to load classes succeed.