Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

OutDated Entity Bean Attribute Values!!!

 
1cuervo
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Something weird is happening to the entity beans in my database. I have a MBean which scans through all the rows in my database and makes changes under certain conditions (i won't bore you with them). e.g. Changing status="processing" to status="ready".
The changes are certainly visible when I look at the entity bean attribute values with simple SQL queries, but when I get a simple client to return the value with an entity bean getXXX() method, it retruns the OLD value, no matter how long I wait.
When I restart the server, I finally get the correct, updated value.
Could somebody please tell me how I can get the updated value without having to restart the server?
It seems that the beans get activated at server startup and never refresh their up-to-date attribute values before being passivated at server shutdown.
is there some ejb-jar.xml attribute i can modify so that entity beans refresh their attribute values constantly?
Thanks very much for your help!!!
 
Carl Trusiak
Sheriff
Posts: 3341
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Java Ranch has thousands of visitors every week, many with surprisingly similar names. To avoid confusion we have a naming convention, which you agreed to when you registered, described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name. Please log in with a new name which meets the requirements.
Thanks.
 
Look ma! I'm selling my stuff!
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!