Hi,

You can create your own IPageManagerProvider that extends from
DefaultPageManagerProvider and overrides its #getPageStore() method [1]
Then set it in YourApp#init(), like at [2]

1.
https://github.com/apache/wicket/blob/936adf7c1658de32cabddfd6acc4994bb3f5ea45/wicket-core/src/main/java/org/apache/wicket/DefaultPageManagerProvider.java#L71
2.
https://github.com/apache/wicket/blob/936adf7c1658de32cabddfd6acc4994bb3f5ea45/wicket-core/src/main/java/org/apache/wicket/Application.java#L662

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Wed, Nov 9, 2016 at 4:39 PM, ygou <[email protected]> wrote:

> Hi, I'm trying to cluster Wicket web application. I'm using Wicket 6.x.
>
> In terms of the page store, in our system, all servers now share the http
> sessions, while the persistent store is still set to be disk files. (We
> prefer not to put persistent store into the session, otherwise the session
> size would be too big.)
>
> Now about the application scoped cache (i.e., the second level cache), we
> can control its size (via IStoreSettings.setInmemoryCacheSize()), and so
> we
> would like to share it across all servers.
>
> If I understand correctly, the application scoped cache
> (SerializedPagesCache) is local and may not be able to be clustered. Is it
> possible to re-implement it and inject the new implementation via
> configuration, so that the second level cache can be clustered?
>
> --
> View this message in context: http://apache-wicket.1842946.
> n4.nabble.com/Is-there-a-way-to-substitute-the-application-
> scoped-cache-tp4676073.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to