tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: ConcurrentModificationException on tomcat cluster with SimpleTcpCluster strategy
Date Mon, 21 Jan 2008 15:00:47 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Filip,

Filip Hanik - Dev Lists wrote:
| the solution is to not store stuff in the session modified by other
| threads, if that's the case, then its not really something you wanna
| store in a session

What's wrong with modifying something in a session? It's not being
modified by "other threads"... it's being modified by request-handling
threads. The only synchronization issue is that the replication code
basically needs to take a snapshot of the session, but that's not
possible because there is no standard way to do it.

I suppose if you have to modify something in the session, you can
copy-and-modify and then put it back... but that's not very efficient.

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

iEYEARECAAYFAkeUs58ACgkQ9CaO5/Lv0PC0+gCgkJ4m+eEoozj6fFth0KIE+tC+
mYEAn0oYsxUCiFoGxA7U2Ub+aWE/NcBX
=YrnX
-----END PGP SIGNATURE-----

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


Mime
View raw message