[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Help understanding Session System Properties
From:       Christopher Schultz <chris () christopherschultz ! net>
Date:       2014-07-25 14:27:25
Message-ID: 53D2694D.8030103 () christopherschultz ! net
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Filipe,

On 7/24/14, 2:53 PM, Felipe Jaekel wrote:
> My session timeout is 15 minutes.
> 
> I have thread that may set a session attribute, but it run only
> once after user login and take approximately 1 minute to complete.
> 
> My applications are JSF based, and most of managed beans are view
> scoped. The majority of requests is completed is less than 1
> minute.

Ok, so you have a background thread that can work on the session even
when there are no currently-executing requests that refer to it?

I'm not sure if you can tickle the session to update its last-used
date without reaching-into the Tomcat-specific APIs. You might be able
to make a lookback request from inside the server to its own local
connector and reference the session just to send a "keep alive" for
the session while you work on it. It's ugly but it should work.

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

iQIcBAEBCAAGBQJT0mlNAAoJEBzwKT+lPKRYFv8QAJBbVh1a6ZjQ2FIndg0e6g0c
/p0fnJi4u7pQIfygb+HspRa0uE4IoknPlQvYJuI/CZ9WXGbcJlxg0wojZbnldTkB
/+WMaUDAr197iE/i1J9gVTlHBn5wIoKefQ4SSsP4b2hg37AhGvyhh47fHVt/d9mC
TcLVgrcydlai/kyM8oxP23HIfXj5/v+HDrADYUMLy+7QDR42g2B8Q0Biuw1ezu8W
BeK31ZPtn9veGoUMA/eUdh14EBplC2BTzeerTxERQNj3FTCPAfnyZthAIqB7wLIw
ubdEMNZ+ZMPrcT5lWKyoakGiISqzYXfy+PkWK+XDU7n4zGAgpYDfI2kQ8SnVT/E6
7f0KFl6OHxEBoqpbvLImuxhj1qLCvXSBWlfbLcWdiwzutYMhKzNyqaCRgMdAa1Ea
Z5VHp18oA8QDbrxx4C5ipcS5xFLSnwQYYH4vqiD2adeKmtXEhvd5CwPas1TG0qtS
RcrOtOm/TsOQJeWqBh8b0yJmXdqdGPjYgHJy3FXygME1tTFpoPkYRcTuIgkiy5WY
+JaPGMidOXi63ZxX2eZcpfBhfzkQZ5sLIUrEVnksMV+yB3GWJog2kek6emyIaDvT
oqRtuEHEOXI3/CNUN1YLEj5St8408qsVHZExqtuYL+78YcUidJcMsCEbQenN3y2v
MHKAAQdT+mycs7BFSGNB
=Pqmh
-----END PGP SIGNATURE-----

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic