This figure illustrates the Connection Properties Tab in the persistence.xml Editor. Set the Transaction type to Resource Local. Use the Populate from connection link to provide the connection information:
Driver = oracle.jdbc.OracleDriver
URL = jdbc:oracle:thin:@localhost:1521:XE
User = hr
Password = hr