dev@glassfish.java.net

Re: HA/in-memory replication

From: Ashish Sahni <Ashish.Sahni_at_Sun.COM>
Date: Fri, 06 Apr 2007 11:34:55 -0700

Comment/question inline:

kedar wrote:

>
>
> Ashish Sahni wrote:
>
>> Please see inline:
>>
>> kedar wrote:
>>
>>>
>>>> Another question I need answered
>>>
>>> We will satisfy all your needs :)
>>
>> I hope not ;)
>>
>>
>>>> since I can't actually verify this now -
>>>> For the application session data to be replicated across instances,
>>>> does the data (stored
>>>> in HttpSession) have to be 'instanceof Serializable' ?
>>>>
>>> I would think so. I hope that you are not storing complex
>>> data structures in the session though.
>>
>> Define complex ?
>
> Anything that's not simple. Example: a Hashtable<String,String>.

I'd like to know where you are coming from. Is it only performance
of the replication process that's behind this call or is there more to it.
And are we (trying to) enforcing this in any way ?

The reason I bring this up is because you can bet what gets stored as
session data
in a lot of apps is a lot more 'complex' than a 'simple' hashtable.

Thanks
Ashish