Class SessionPageStore

  • All Implemented Interfaces:
    IPageStore

    public class SessionPageStore
    extends AbstractPersistentPageStore
    An IPageStore implementation that stores serialized Pages in JSecurity's Session. This implementation exists to support applications that use JSecurity's Enterprise Sessions instead of HTTP-only sessions.

    In a distributed application, the JSecurity Session data might not reside on the same host that runs the Wicket application. In these cases the default DiskPageStore used by Wicket is not suitable. Instead Page state must be serialized to a mechanism that is 'cluster-friendly'.

    JSecurity's enterprise Sessions are cluster-friendly, so storing pages in the Session is a good choice. This means applications can utilize true generic load balancing and do not need sticky sessions - the Wicket PageMap can be updated on one host which is then available for any next load-balanced request on another host because the Session is clustered.

    Author:
    Les Hazlewood, Sebastian Thomschke