tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: [OT] Problems keeping references to HttpServletRequest, HttpServletResponse and HttpSession
Date Wed, 04 Sep 2013 11:57:18 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Thomas,

On 8/31/13 5:50 PM, Mark Thomas wrote:
> However, there is some good news. If you use the async API, the
> app can stay pretty much as is.
> 
> The short version is: - use startAsync and pass the async context
> to your threads - have those threads write to the response (make
> sure you don't write concurrently) - call complete once all the
> threads have completed

I'm curious, having never done any async programming: can one simply
synchronize on the response object in order to remain threadsafe, or
are there fa├žades in use that prevent that from being practical?

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSJyAeAAoJEBzwKT+lPKRYwiUQAJC41eMzz9Q/CkDU16wBt/3u
eJ84zBe/dVNdQE1jGq9q8aYpoyf6bcTT9DT8nGdSdtDH11Qgup4OenftaA0itDVU
3EAo2cyggHe0NMLg/n8Mst6zYNu8P0KqtYYCoO2FccyFdxSoSJg5xVd1wGWLT4FF
M58+SVRBNti0+wV50pZsh5U0ofT4A8f7fToH+kMqdm/RHQMkSsfNE5q6Nqv4s5wF
Y7OkRZ2bmqHVVO3rcuHPaQExETLCBqovkPsRRQPukncJX+PlK1rD50SEiMcpfYIR
TYzDCV8AShfCkz+bDPka29ELtSqXAjESmb+nA2CEd4PNOpS7pRS63KHDnSZiIBuz
71KOrxKyIe8xYF9lpQPAO2w+iPNyWsCYuqAaQAu5flwR9VFSE/JojXFu8wNPncp+
0mNwlOrYTVKMe3BEyPXwXRh/4E/Zoa1CWvVYzkIaH6a6rR8a0YKenZQlPrX4A2Ro
N6CmHTOrucphBQmNpylacUbW1U+7eXAYbfNH/MXioO+bn+dQ8H/hCphevkGboXhr
j2Vrj+URzjrrQVsd+rKpE5hTYg8oweFFuZeXNO8dmzwXklofw+sQVFhoyMA0Y3Ze
xeMaHh1BmsNakvXMWdpfxLzGEOfozRun0t5FjCWckvFdlAhp83P0uYjxhyQI0Rs8
NGU8xXMGCeNmNpzKtBRt
=lnk4
-----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