The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Sysnchronizing the bean's state with DB Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "Sysnchronizing the bean Watch "Sysnchronizing the bean New topic
Author

Sysnchronizing the bean's state with DB

Claudio Malso
Ranch Hand

Joined: Nov 05, 2002
Posts: 50
"Which two callback methods can be used for synchronizing the bean's satte with the DB ?"
Aren't they ejbStore() and ejbLoad() ? Cos the right question of the test is ejbActivate() and ejbPassivate()...
I was reading the Monson-Haefel's EJB book and either in CMP or BMP, in the synch with DB load and store are used...any comments ?
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
You are correct it is ejbStore and ejbLoad. Do not put much faith in the various mock exams scattered across the Net. The are usually of a very poor quality, not similiar to the actual SCEA exam, and the answer is wrong as much as not.
 
 
subject: Sysnchronizing the bean's state with DB
 
Threads others viewed
Data Structure?
Resource allocation in ejbCreate/ejbRemove
two more EJB Questions.
question about ejbPostCreate
Accessing UserTransaction object on JBoss 4.0.1 from remote client
developer file tools