openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Boblitz (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENJPA-2436) DynamicEnhancementAgent with multiple PU's aborts on bad PU definition
Date Thu, 10 Oct 2013 14:32:41 GMT
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)

Mime
View raw message