Mantis - Resin
Viewing Issue Advanced Details
1820 major always 06-22-07 10:20 08-21-07 14:45
calmman  
ferg  
normal  
closed 3.1.1  
fixed  
none    
none 3.1.3  
0001820: valueBound isn't called on load from persistent store anymore but valueUnbound still is called on save
I have an object that implements HttpSessionBindingListener and Serializable

it is setup so that on valueUnbound it cleans up database. Problem is that with persistent storage valueUnbound is called every time session is saved in the database which in my case happens after every request. Since you have fixed bug 1402 valueBound isn't called on load anymore so the sequence of calls is like this:

first time I save object in the session:
valueBound
readObject - Serializable
writeObject - Serializable

then after, on every request:
valueUnbound
readObject
writeObject

when session expires:
valueUnbound


so my problem is that since there's no corresponding valueBound anymore I have no ways to determine if it is time to clean database...

isn't it a bug that valueUnbound gets called on every session save??

Notes
(0002210)
ferg   
08-21-07 14:45   
server/017u