Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

HF-EJB book. Page 366 - Q18, Need explaination

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Can someone explain me this question in HF-EJB book. Page 366 - Q18



Which method(s) run in the transaction context of the method that causes their invocation? (Choose all that apply)

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



Thanks a lot in advance.

Regards,
Tripter
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Let me explain you the most obvious of the three answers.

ejbLoad(), ejbRemove(), ejbSelect()

These methods should always run in the transaction context of the method that calls it as 2 & 3 operations are database operations. This operation is called by the client as and when required, so this has to be in the same transaction
 
    Bookmark Topic Watch Topic
  • New Topic