hazelcast/hazelcast — pull request #153 by Nugs (2012-05-09 15:56:55+00:00)
Title: WebFilter updates: (1) Add ability to use HazelcastClient for WebSessions, (2) Issue with session Map wrapping

2 updates for the WebFilter:

1) Added the ability to configure the WebFilter for use as a HazelcastClient connecting to and storing session data to an already running cluster.

NB: This change required a pom update to include the hazelcast-client module as a new dependency of the hazelcast-wm module

2) Potentially as a knock-on from this, I experienced some issues with the persistence of sessions. Investigation led to the fact that when persisted the session is translated to an nio.Data object which is pushed to the distributed map. On retrieval, the system is expecting a naked Map instance leading to class cast exceptions. Adding ThreadContext.get().toObject(..) correctly deserializes the instances.