Troubleshooting
Problem
If multiple persistent units are defined in persistence.xml in IBM Rational Application Developer for WebSphere Software version 7.5, attempts to open the persistence.xml file results in a warning message stating that multiple persistent unit is not supported.
Symptom
If multiple persistent units are defined in persistence.xml in Rational Application Developer v7.5, the following warning message appears when opening persistence.xml in the Editor:
"Multiple persistence units defined - tooling only supports 1 persistence unit per project."
Image:

Here is the example code:
<persistence-unit name="testjpa" transaction-type="JTA">
<jta-data-source>jdbc/istobankderby</jta-data-source>
<class>entities.Account</class>
<class>entities.Customer</class>
<class>entities.Transactions</class>
</persistence-unit>
<persistence-unit name="testjpa1" transaction-type="JTA">
<jta-data-source>jdbc/sampledb2</jta-data-source>
<class>entities.Department</class>
</persistence-unit>
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
23 June 2018
UID
swg21413161