I'm working with struts2, hibernate and spring and using model driven pattern. It seems that there is a serious issue when trying to fetch an object with 2 different users and sessions (also different computers) at the same time exactly.
More info... Let's say we have a Project object which has 2 members - user and name. Both users will try to fetch their Project object (which is a different object for different user of course). So User A would have a project with id 498 and User B would have a project with ID 499.
The struts action would recognize that they're trying to fetch an object with different ID but it seems that both of the users have the same Project object instance and therefore they see the same result. You could see in the log provided here:
2011-12-08 14:07:21 LoginInterceptor [INFO] User 17 is invoking populateProject, params: id=499 2011-12-08 14:07:21 LoginInterceptor [INFO] User 4 is invoking populateProject, params: id=498 2011-12-08 14:07:21 ProjectAction [INFO] Obj: hbn.Project@e2df60d, Session User Id is 17, obj.user.id is 4 2011-12-08 14:07:21 ProjectAction [INFO] Obj: hbn.Project@e2df60d, Session User Id is 4, obj.user.id is 4
How could I solve it?
Thanks, Ron.