What I'm also just thinking about: using sticky sessions (as wicket
seems to require them) and memcached as a session failover solution.
I have
s.th. like that in mind: Use standard HttpSessions in memory
and write sessions to memcached nodes. This should be done by a
servlet Filter, that is configured with a certain memcached node
address to which it sends the session at the end of doFilter (provided
there's a session). Additionally the filter adds a cookie to the
response that stores the memcached node where the session is located.
When a server goes down and the load balancer routes the request to
another server the filter will check if a session is requested but not
available locally (in memory) and fetch the session from the memcached
node. Then the session must be registered in the local session store
of the servlet container - and that's where this filter approach is
limited.
So it seems one needs to do this in a custom session manager that is
registered with the servlet container (for tomcat see
http://tomcat.apache.org/tomcat-6.0-doc/config/manager.html). The
drawback obviously is that one is bound to a certain container then.
I have to think a bit more about this, but right now this seems to be
an option for session failover and scalability.
Cheers,
Martin
On Mar 14, 5:51 pm, Martin Grotzke <
martin.grot...@googlemail.com>
wrote:
> Ah, the idea of groups sound also nice - I like that!
>
> However, in the meantime my mind changed and I'd prefer using the database
> as this is really failsafe (as long as the database is available :)).
>
> Cheers,
> Martin
>
> 2009/3/12 philc <
phil.clari...@gmail.com>
> E-Mail
martin.grot...@googlemail.com
> Online
http://www.javakaffee.de