Martin, et al. With regard to the "which OSGi spec version...", do the OSGi specs in any way mandate which JPA spec is used? If so, we definitely want to target 2.0 (although this will go into the Hibernate codebase supporting JPA 2.1).
Balazs Zsoldos Thanks for that insight. As far as "persistence unit" building, I definitely agree that that is the way to go. As far as Class loading, what you describe is not that far removed from what Hibernate does (see the ClassLoaderService source I linked previously). We are still transitioning to sole use of ClassLoaderService to perform Class loading so there still are most likely some outliers.
Martin, et al. With regard to the "which OSGi spec version...", do the OSGi specs in any way mandate which JPA spec is used? If so, we definitely want to target 2.0 (although this will go into the Hibernate codebase supporting JPA 2.1).
Balazs Zsoldos Thanks for that insight. As far as "persistence unit" building, I definitely agree that that is the way to go. As far as Class loading, what you describe is not that far removed from what Hibernate does (see the ClassLoaderService source I linked previously). We are still transitioning to sole use of ClassLoaderService to perform Class loading so there still are most likely some outliers.