-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Jerry,
On 2/11/20 3:11 PM, Jerry Malcolm wrote: > I need some advice. I need to maintain a set of long-running > threads. When a request comes in, I need to determine if I have a > thread started for a particular id found in the request. So I need > to have a hashmap of threads keyed by the ids. That part is simple > enough. But I'm struggling with where to keep that hashmap object > so that it is available to all incoming requests (any session). > This object should persistently remain as long as Tomcat is active. > It must be scoped to the virtual host and only needs to be > available in one webapp context within that host. Suggestions on > how to proceed will be greatly appreciated. Can you give more details? - - Does this HAVE TO remain available even when no web applications are deployed -- particularly the one9s0 which established the registry to begin with? - - Does this HAVE TO be limited to a single web app? Or is it okay to have separate thread-registries in each web application where this will be used? - - Does this HAVE TO be shared between all the web applications deployed within a VirtualHost? - - Do you need to be able to actually touch the java.lang.Thread object, or do you just need to be able to determine whether a particular id has a thread running for it? - -chris -----BEGIN PGP SIGNATURE----- Comment: Using GnuPG with Thunderbird - https://www.enigmail.net/ iQIzBAEBCAAdFiEEMmKgYcQvxMe7tcJcHPApP6U8pFgFAl5DK2UACgkQHPApP6U8 pFjcNA//Uiclpr76o0TJcsJb0qaIJ5WdAwK6D9gpHJwf4CzqUn6P0gRZeNpvRrFc hevwZPvcZyZnDxhJU/wRFBVnPiaYdkeNU2u+9nDsJ6BgfCmQHtfQCh57Mab9KUPU 8i5aIx9jdZwGGF9gdGDmYCmwg7Vs6MV78jAX0BYNvx4emLly3xnCWzvRT9OR24dw 6/eFHX83XObuAN5TatEe1Sptx0Ko2sR52EzhyCGXCEkU/iBcMKOyui16eStwdTzS R3FZNpUYQKK6immYKL1Jx5xBJiSrgZQT++GTIaOYrhmYUReo974NB8liLEK6DEGY vlL30oH5sKBwqZgW+jjng2MaFyV/LXm/D2TN7cF4vWgdwBOqlRQ3LxL+YrQdzS81 cpwV30nAGm71B3V+0/AMRisPTdvTmxF/nOt5E7cIb9bJCDZwNWDcNUzR8G9lJBC+ 3a1CX+NZnUYEV5yZ59O3wpNlBfj1FLn5VP22JvtRR027ibeFPCje034L5qNBGCJm 61pJRPBV7cnXmdhG/VTzFCJLTQ36qfuf9v0plY8hS1HuikYP90bMtHO67HGBT2Nm tseZ/dLs4YpyuwnpvNAxEEYEtz6YfU9O85DbUPOH++ZzLVjP6GNRpJ2km/do95/S RQ3g9q5fylgyeXf2xuhTQLYRC8m++Fwv+PaxGvyIkTzpayE3p0g= =knui -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org