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?
posted 4 years ago
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?