• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

when ejbLoad() will be called?

 
Alexis Li
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,another question that troubles me.
Well, i have a system using VB and EJB.When i update a state to the db using VB and i want to view the state back using CMP bean,it seems that the state has not been updated yet.
The update has not been processed through the EJB
container because i just update it outside using VB(or directly update it through the db client).
Does EJB container sychronize with the db when
I view the update (in fact ejbFindByPrimaryKey() is called).From the ejb spec,it states that
at least one ejbLoad() would be called at the beginning of the first transaction method call.
So synchroniztion doesn't seem to be a problem.
Any comment?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are correct, one of the promise is to keep the bean upto date with the underlying data in the database so that the client will never see the stale data.
When your VB client updates the record, can you verify that the change has been made using say, a SQL program?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic