John Boblitz created OPENJPA-2436:
-------------------------------------
Summary: DynamicEnhancementAgent with multiple PU's aborts on bad
PU definition
Key: OPENJPA-2436
URL: https://issues.apache.org/jira/browse/OPENJPA-2436
Project: OpenJPA
Issue Type: Bug
Affects Versions: 2.2.2
Reporter: John Boblitz
When DynamicEnhancementAgent is set to true in a persistence.xml with multiple
persistence unit definitions, the PCEnhancerAgent will loop through each PU and
attempt an initiateAll(). However, if there is an error in the
RemoteCommitProvider (such as an unreachable address), the initiate fails and
persistence does not start.
It makes no difference whether the pu that causes the exception was the one to
be used or not.
Setting the DynamicEnhancementAgent to false solves the problem.
Rick Curtis advised:
"In the event that an invalid PU is encountered, a message should be logged and
the error should be tolerated."
--
This message was sent by Atlassian JIRA
(v6.1#6144)