aspose file tools*
The moose likes Object Relational Mapping and the fly likes Toplink stale sessions - urgent help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Toplink stale sessions - urgent help needed" Watch "Toplink stale sessions - urgent help needed" New topic
Author

Toplink stale sessions - urgent help needed

Betsy Camel
Ranch Hand

Joined: Oct 02, 2003
Posts: 119
Hi All,

We have a functionality in our application in which the record added by 1 user has to be approved by another user. Recently we found that the record added by 1 user is being stamped with another user details though the second user had not logged into the application on that day. When i checked the queries i find the userid to be passed as empty values ( in the logs ) but the data stamped at the back end is of some other user... Could this be because of toplink stale sessions. Please provide your suggestions and inputs on resolving this problem(assuming that its because of stale sessions )

regards
betsy
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 553
Sounds like a application issue. You will need to debug why it is occur, enable logging and check the state of your objects before you persist them.

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Toplink stale sessions - urgent help needed
 
Similar Threads
WeakHashmap or TimerTask for stale sessions cleanup ?
need help on update functionality
Why are dirty reads ok?
NX: About Locking
Can I recover from a optimistic lock exception within the same transaction?