This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
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

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Toplink stale sessions - urgent help needed" Watch "Toplink stale sessions - urgent help needed" New topic

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 )

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:
subject: Toplink stale sessions - urgent help needed