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

Entity bean question - HFEJB pag 366, exe: 18!

 
Steven Colley
Ranch Hand
Posts: 290
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks..!!!

What is the meaning of this question bellow:

"18 - Which method(s) run in transation context OF THE METHOD THAT CAUSES THEIR INVOCATION?"

A - ejbLoad
B - ejbRemove()
C - ejbSelect()
D - ejbActivate()
E - ejbPassivate()
F - setEntityContext()

Tks in advance!!! ;-)
 
Gowher Naik
Ranch Hand
Posts: 643
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ejbLoad
--------
This method executes in the transaction context determined by the transaction attribute of the business method that triggered the ejbLoad method.

ejbRemove
---------
This method and the database delete operation(s) execute in the transaction context determined by the transaction attribute of the remove method that triggered the ejbRemove method.
ejbSelect
---------
The ejbSelect<METHOD> method executes in the transaction context determined by the transaction attribute of the invoking business method.

ejbActivate and ejbPassivate
----------------------------
The container invokes this method with an unspecified transaction context.

setEntityContext
----------------
The container invokes this method with an unspecified transaction context.

So answer should be
A - ejbLoad
B - ejbRemove()
C - ejbSelect()
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic