Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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

Mock question 7 page 522 HFEJB

 
Ranch Hand
Posts: 271
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can someone explain to me why A isn't correct.Also , I'm confused by the meaning of the "\' character.
 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Method 2 has a tx attr of "Required".

From 17.6.2.2 of EJB 2.0 Spec

Required
---------
The Container must invoke an enterprise Bean method whose transaction attribute is set to Required with a valid transaction context.
If a client invokes the enterprise Bean�s method while the client is associated with a transaction context,the container invokes the enterprise Bean�s method in the client�s transaction context.
If the client invokes the enterprise Bean�s method while the client is not associated with a transaction context, the container automatically starts a new transaction before delegating a method call to the enterprise Bean business method.

Option A which indicates that method 2 does not run in a txn context violates this.
 
    Bookmark Topic Watch Topic
  • New Topic