JPA Datasource property ignored

Description

When using "javax.persistence.nonJtaDataSource" property instead of <non-jta-data-source> tag in the persistence.xml, it is ignored. I assume the happens goes for JTA datasources.
I discovered this when trying to set-up some automated testing using just one persistence.xml.

The attached patch is untested.

Environment

None

Assignee

Unassigned

Reporter

Йордан Гигов

Fix versions

None

Labels

None

backPortable

Backport?

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure