Oracle
1Z0-860 · Question #140
1Z0-860 Question #140: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-860 to reveal the answer and full explanation for question #140. The question stem and answer options stay visible for context.
Question
A Java Persistence application has been developed for a Java SE environment and the persistence, xml file looks like this: <persistence-unit name="OrderManagement" transaction-type=RESOURCE_LOCAL> <mapping-file>order-mappings.xml</mapping-file> <class>com.acme.Order</class> <class>com.acme.Customer</class> <class>com.acme.ltem</class> <properties> <property name="com. acme, persistence, monitoring" value="0N7> </properties> </persistence-unit> Now the developer wants to repackage it as a Java EE application and try it on several compliant Java EE 5 containers using injection to get an entity manager. Which change is needed to make to the persistence.xml?
Options
- ASpecify the JTA data source.
- BRemove the transaction type attribute.
- CRemove the vendor-specific properties.
- DRemove the list of all managed classes.
Unlock 1Z0-860 to see the answer
You've previewed enough free 1Z0-860 questions. Unlock 1Z0-860 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.