[GLASSFISH-15760] Allow persistence units to be packaged outside of the deployment unit Created: 30/Jan/11  Updated: 19/Oct/11

Status: Open
Project: glassfish
Component/s: entity-persistence
Affects Version/s: None
Fix Version/s: future release

Type: New Feature Priority: Major
Reporter: Sanjeeb Sahoo Assignee: Sanjeeb Sahoo
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File patch.txt    
Tags: 3_1_x-exclude


Currently persistence units can only be packaged as part of the deployment unit and only then they are available to EMF/EM reolvers during resolution of @PersistnceContext and @PersistenceUnit or their equivalent JNDI operations. It will be good to allow application developers to package persistence units in standalone libraries or OSGi bundles so as to encourage modularity as well as getting better performance by sharing second level cache.

PFA a patch that adds necessary support in core for such a feature to be supported.

Comment by Mitesh Meswani [ 01/Feb/11 ]

The patch looks good to me. Please go ahead and check in when trunk opens up. Assigning back to you for the checkin

Comment by Sanjeeb Sahoo [ 29/Apr/11 ]

Deferring to a future release

Generated at Sun Oct 04 11:20:22 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.