tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: how to keep session alive on the server side
Date Tue, 23 Nov 2010 21:35:34 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ajay,

On 11/23/2010 4:15 PM, Aggarwal, Ajay wrote:
> I am little reluctant to use HttpSession.setMaxInactiveInterval() for
> couple of reasons:
> 
> 1) I don't know ahead of time how long these operations will take. So
> I don't have a good value to set the MaxInactiveInterval to.

That will certainly be problematic.

> 2) I need to design for my clients crashing or losing connectivity
> with me. So I can't use a negative value either (i.e. never
> expires).

That makes sense.

Have you considered an asynchronous response model? Perhaps a single
HTTP request-response isn't the best way to implement your service.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzsM6YACgkQ9CaO5/Lv0PAJvwCfRGloFQ8aTNSvwHjML8MTk9f/
fnwAn2ITyT6iACIaV3WaH3V4f+awX210
=770y
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message