Blake,
Please find my response inline:

On Wed, Aug 19, 2009 at 8:40 PM, Blake Sullivan
<[email protected]>wrote:

> Abhijit S Ghosh (JIRA) said the following On 8/19/2009 6:32 AM PT:
>
>> XMLMenuModel data structures are not fully serializable.
>> --------------------------------------------------------
>>
>>                 Key: TRINIDAD-1557
>>                 URL: https://issues.apache.org/jira/browse/TRINIDAD-1557
>>             Project: MyFaces Trinidad
>>          Issue Type: Bug
>>            Reporter: Abhijit S Ghosh
>>
>>
>> XMLMenuModel data structures are not fully serializable,which causes
>> problems during session state replication in high availability
>> environments,if subclasses use session to cache menu data structures.This
>> will also create problems during normal serialization.
>> The data structure object hierarchy should be made completely
>> serializable.
>>
>>
>>
> Abhijit,
>
> Do we really need the structure to be Serializable?  If we can rebuild the
> structure after fail-over, it is preferable to use a TransientHolder to hold
> a reference to the unserializable structure and then lazily rebuild the
> structure if necessary.


That is what I am doing here.The non-serializable references have been
marked as transient and the tree model is rebuilt by reading the xml stream
again.So actually no serialization happens.I blow away the cache when I
detect a deserialized tree and rebuild the cache.

Thanks,
Abhi


>
>
> -- Blake Sullivan
>
>

Reply via email to