We have implemented a Stateful Session Beans that uses a HashMap to maintain some state information (info about the client). If the client leaves the site before his session expires and never returns, the info from the cache is never removed and stays there until the garbage collection is run. If the client does come back to finish his/her activity, we clean it up programmatically.
Does anyone have any suggestions as to how to clean up the data (from the clients that do not return) from the cache?
I would like to know if wepshere provides a cleanup service of some sort to take care of this or would we have to write the cleanup service ourselves and run it perhaps once a day..