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
Operations

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.

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.

Andy Jefferson made changes - 23/Nov/11 05:47 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Andy Jefferson [ andy ]
Fix Version/s 3.0.4 [ 11362 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 09/Dec/11 03:15 PM
Status Resolved [ 5 ] Closed [ 6 ]