File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes MZs Notes - Pg 159 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "MZs Notes - Pg 159" Watch "MZs Notes - Pg 159" New topic

MZs Notes - Pg 159

Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
I was reading the section

Identify correct and incorrect statements or examples about application-managed
persistence contexts. - [EJB_3.0_PERSISTENCE] 5.7;;;; - PDF Page 159

After the text, there are three four sample codes.

I was trying to figure out what those samples explain, in context of the relevant text?
Can any one help me please.

SCJP 1.4 - 95% [ My Story ] - SCWCD 1.4 - 91% [ My Story ]
Performance is a compulsion, not a option, if my existence is to be justified.
Devaka Cooray
ExamLab Creator

Joined: Jul 29, 2008
Posts: 3783

Howdy Niranjan,

I would like to kindly suggest you to feel kind to post the exact code here which makes you confused; so that we can help you quickly.

Author of ExamLab ExamLab - a free SCJP / OCPJP exam simulator
What would SCJP exam questions look like? -- Home -- Twitter -- How to Ask a Question
Niranjan Deshpande
Ranch Hand

Joined: Oct 16, 2005
Posts: 1277
Hi Devaka,

Here are those listings -

Charles O'Leary

Joined: Jul 10, 2014
Posts: 23
Hi All, Any takers?
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper

Joined: Apr 07, 2010
Posts: 2041

Hi Charles,

This is a question related to the SCBCD5 exam (EE5) and is more or less about JPA. In the EE5-version of the EJB exam JPA is included, whereas in the EE6 version JPA has its own certification.

Please also note that EJB Certification (EE5) is related to JPA 1.0 and JPA Cerification (EE6) is related to JPA 2.0.

Apart from that what were your thoughts about this question?
Charles O'Leary

Joined: Jul 10, 2014
Posts: 23

Are there better and/or more comments for these 4 examples for (EE5) exam prep?

For example, one thing I think I possibly need take away from these examples is that persistence context is separate from how the entity manager processes underlying transactions, also illustrated by the 2nd and 3rd examples with em.joinTransaction(). It appears that although all these examples are application-managed persistence context, clearly 3 are container managed (JTA) transactions, while the other is resource local transaction. Is that appropriate? Are there better and/or more appropriate comments?

The last example "Example of application-managed Persistence Context with Resource Transaction" has a interesting title for folks that may want to incorrectly think in terms of persistence context "defining" transaction processing?
wood burning stoves
subject: MZs Notes - Pg 159
It's not a secret anymore!