On 27 Feb 2012, at 22:18, Hassan Schroeder <[email protected]> wrote:

> On Mon, Feb 27, 2012 at 12:04 PM, hernan <[email protected]> wrote:
>
>> - how to or where to place and access an object shared by all tomcat threads
>>
>> And I'd like to have a solution that can be extended to many tomcat
>> instances (in different servers).
>
> Why not just keep counters in an in-memory store like e.g. Redis,
> MongoDB, Cassandra, etc. etc.?

Or queue the work requests in a per user queue.

This is better for long running jobs, better for user/resource
management and could make your app more responsive.


p


>
> --
> Hassan Schroeder ------------------------ [email protected]
> http://about.me/hassanschroeder
> twitter: @hassan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to