Performance Improve
Hi to all,
i am working on a performance Improve,
we are storeing date in session in specific search results, but it is going to up more than 2MB,
now we want remove unnessery date from session,
for that we have design like,
we have to create side process it will run every 10min,and it will check if the user is not accessing session data from last 15min so we have to remove from session.
what i want is how to create this side process,
if any body knows implementaion pl reply me.
Thanks in Advance
[558 byte] By [
chrajua] at [2007-10-2 10:09:31]

we have to create side process it will run every 10min,and it will check if the user is not accessing session data from last 15min so we have to remove from session.
How do you know when user has accessed given session data?
Do you have timestamp management in your search result data structure?
Generally speaking, doing a repetitive task can be achieved with the help of [url=http://java.sun.com/j2se/1.4.2/docs/api/java/util/Timer.html]java.util.Timer[/url]
Thanks your reply,
actually when the user is not accessing that data for 15min then we have to remove from session, if the user wants same data after deleted then we can get from beans or databse.
now we will add the timestamp in search controller, it will holding the lastaccessedtime ,so every 10min we will compare the lastAccessed time and current time if it is greater than 15min then we have to remove from session
Thanks
> we have to create side process it will run every
> 10min,and it will check if the user is not accessing
> session data from last 15min so we have to remove
> from session.
>
> How do you know when user has accessed given session
> data?
> Do you have timestamp management in your search
> result data structure?
>
> Generally speaking, doing a repetitive task can be
> achieved with the help of
> [url=http://java.sun.com/j2se/1.4.2/docs/api/java/util
> /Timer.html]java.util.Timer[/url]
Just out of curiosity ... I was under the impression that only some call you ... Tim. Can I call you Sam? Or Vsevolod? Or even Matabei?
?{?