I'm having a stale attribute with the http session within Websphere 6 and may be related to in memory session replication..
Steps:
- Object A.0 - Placed into the session with ID "ABC"
- Remove A.0 from the session..
- Object A.1 (New instance) - placed into Session with ID "ABC"
- retrieve object with ID "ABC" from the session - RESULT: A.1 (Correct)
- carry out a Servlet forward or a redirect (issues seen on both functions)..
- retrieve "ABC" from the session - RESULT: A.0, the object that was removed from the session..
Notes -
- Same Session object (hashcode/session ID) used in steps 1-5 using in memory replication across 2 JVMs (single cluster)
- time duration between steps 2 & 5 is total of 4 seconds
- No other external threads have accessed the session in the interim..
- Only noticed for 1 specific use-case; haven't encountered this in
other use-cases..
Anyone seen anything like this before where a stale data is being returned from the websphere application server?
Thanks,
Ian.