users@glassfish.java.net

Re: Load Balancer routing not sticky on SJSWS

From: Kshitiz Saxena <Kshitiz.Saxena_at_Sun.COM>
Date: Tue, 01 Dec 2009 18:36:29 +0530

Hi Paul,

I am not sure what you mean by creating session state. In my view call
to HttpServletRequest.getSession(true) will be sufficient.

Thanks,
Kshitiz

pgribben wrote:
> Kshitiz.
>
> I hadn't realized that I needed to set some session state to get the app
> server to write a cookie to the response header. I set a session attribute
> in my test servlet and now the requests are sticky.
>
> Thanks for your help with this.
> Paul
>
>
> Kshitiz Saxena wrote:
>
>> Hi Paul,
>>
>> Thanks for the information. It was really useful.
>>
>> It looks like that your application is not creating any session. There
>> is no "Set-Cookie" header in response to indicate that a session is
>> created. Your browser is somehow sending JSESSIONID. I am not sure how
>> that cookie was set. Please create a session in your servlet, then
>> web-container will stamp JSESSIONID in response. Then will force
>> load-balancer to insert additional sticky information.
>>
>> Thanks,
>> Kshitiz
>>
>>