Which change is needed to make to the persistence.xml?

A Java Persistence application has been developed for a Java SE environment and the
persistence.xml file looks like this:

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 Java Persistence application has been developed for a Java SE environment and the
persistence.xml file looks like this:

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.
Remove the transaction type attribute.

C.
Remove the vendor-specific properties.

D.
Remove the list of all managed classes.



Leave a Reply 0

Your email address will not be published. Required fields are marked *