Is it possible to distribute/share a persistence unit to multiple EJB modules containing entities?
Posted on 2011-09-27
In a J2EE 6 EAR, I would like to know if there is any means to distribute/reuse a persistence unit through multiple EJB modules.
As I understand, the unit seems limited to a single module. But I just want to check with you.
And if it is the case, does anyone have recommandation about how it should be implemented? Should entities always be packed in a single module?
Thanks for any lead.