aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Mock question 7 page 522 HFEJB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "Mock question 7 page 522 HFEJB" Watch "Mock question 7 page 522 HFEJB" New topic
Author

Mock question 7 page 522 HFEJB

jeff mutonho
Ranch Hand

Joined: Apr 30, 2003
Posts: 271
Can someone explain to me why A isn't correct.Also , I'm confused by the meaning of the "\' character.
Ramakrishnan Viswanathan
Ranch Hand

Joined: Aug 24, 2005
Posts: 90
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.


Regards<br />Ram<br /> <br />SCJP 1.4, SCBCD 1.3, (SCEA)
 
Don't get me started about those stupid light bulbs.
 
subject: Mock question 7 page 522 HFEJB