You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Denis Hennessy <dh...@gmail.com> on 2006/04/18 18:55:30 UTC

How is clustering supposed to work??

I'm confused about clustering faces apps. Here's my understanding -
maybe someone can correct me or point me in the right direction:

1. Application logic is implemented in a backing bean, including
application 'state' like current objects, selected items, etc.

2. In faces-config, this bean is flagged as session scope so it's
available to subsequent calls (which update its state).

3. To support session replication, you mark the app as 'distributable'
and make sure the backing bean implements Serializable and only
contain serializable non-transient attributes.

Now, in my testing, this doesn't work. The main reason it doesn't work
is that there's no call to setAttribute() when the bean is updated (so
changes never propagate to other servers). So, am I missing something
or is this a really big problem?

Thanks,
Denis