• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

HF Final Mock Exam 42 & 49

 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!!
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic