Win a copy of Spark in Action this week in the Open Source Projects 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 Final Mock Exam 42 & 49

 
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?
 
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.
 
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!
 
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 !!!
 
He puts the "turd" in "saturday". Speaking of which, have you smelled this tiny ad?
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic