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?
A.
Specify the JTA datasource.
B.
Removethetransactiontypeattribute.
C.
Remove the vendor-specific properties.
D.
Remove the listofall managed classes.
Explanation: