Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access Intent

 
Sachin Kansal
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi! All,
I has 2 answers, one is ejbStore(). What is the other?
If the Access Intent on a method is �Read�, what restrictions does it place on the EJB?
-The ejbStore() method is not called.
-The ejbLoad() method is not called.
-The ejbActivate() method is not called.
-The ejbPassivate() method is not called.
bye.
Sachin
 
Dennis L Chen
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The answer should be ejbStore() and ejbPassivate().
ejbLoad() are called by container when it is time to read from the database. If this one can't be called, how can the container associate the data with the bean instance?
ejbPassivate() is called by container when it is about time to disassociate the bean from the data, it also means ejbStore() will be called after this method. As we can find in the infocenter:
Access Intent -
Intent type Specifies whether the method is a read-only method or whether the method can update data (or invoke other methods that can update data, in the same transaction). The legal values are read or update (read/write).
this method will cause other methods that update data be called. So I think ejbPassivate() is an answer.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic