DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-156
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

If you were logged in you would be able to see more operations.
DataNucleus API JPA

Create of EMF for a persistence-unit "name" creates two NucleusContext and results in excessive startup loading

Created: 23/Nov/11 04:09 PM   Updated: 09/Dec/11 03:15 PM   Resolved: 23/Nov/11 05:47 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.0.4

 Description  « Hide
When we create an EMF the process is
1. Parse persistence.xml for the unit with this name
2. Create NucleusContext etc for this unit

The only problem with this is that step 1 will also create a NucleusContext, hence create a TypeManager etc when they aren't needed; we simply want a parser for the persistence.xml.

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 23/Nov/11 05:47 PM
SVN trunk now creates a PluginManager so we can parse the persistence.xml, and reuses the PluginManager for its own NucleusContext.