You could also add a page count to each HttpSession. Then set up a
session listener for expired session notifications. At that time you
could update the database with the counts. It would make the sessions
larger but reduce your database hits.

You could also throw it in the application context and when the
context is destroyed save it there also.

On 2/22/06, Dave <[EMAIL PROTECTED]> wrote:
> what is the right way to add page hit count?
> If adding page count as part of persistence model, every hit will have to
> update database, quite expensive. Your ideas?
> Thanks!
>
>  ________________________________
> Brings words and photos together (easily) with
>  PhotoMail - it's free and works with Yahoo! Mail.
>
>

Reply via email to