• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

HF Final Mock Exam 42 & 49

 
Kris Reid
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Q42
Doesn't ejbCreate() run in an unspecified transaction context?
Just like setSessionContext() & afterCompletion()

Q49
Don't Entity Beans have to run with CMT?
That would make C wrong, right?
 
Chengwei Lee
Ranch Hand
Posts: 884
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kris,

If its possible, could you post the full questions & options? Don't have a copy of HFEJB in the office. Else could only reply when I get back home.

Cheers.
 
William Parker
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As regards q42, an Unspecified Transaction Context is different from no transaction context. setSessionContext() and afterCompletion() methods have no transaction context, whereas ejbCreate will run in a UTC.

p499 of HFEJB states all methods which will run in a UTC. If you look at the spec, Section 17.6.5, page 363 this gives more detail on what a method in an unspecified transaction can do. You can still access Resource Managers and other beans from within an unspecified transaction context.

I think you are definitely right with q49, though I must confess I never noticed it myself!
 
Deepa Korecherla
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Really I too diddn't notice the answer in Q49.
Entity Beans -- only CMT.
SHould point this out in the errata...Its not even in that !!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic