From: Bela B. <be...@ya...> - 2002-12-17 23:58:45
|
Filip Hanik wrote: > an addition to this, > the manager must block all other messages while writing the sessions > to the > byte array, so that sessions don't send messages before the actual session > has been transferred. > more on this later :) All we need to do here is to synchronize around cache access, maybe use a r/w lock. We just need to insure that noone else is modifying the state while we copy it. JavaGroups' state transfer takes care of shipping the state to the new member at the correct location in the message stream. -- Bela Ban http://www.javagroups.com Cell: (408) 316-4459 |