openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Talbut <jtal...@tardis.spudsoft>
Subject OpenJPA and OSGi - splitting the persistence context
Date Tue, 28 Feb 2012 08:49:30 GMT
Hi,

I'm working on a system that is due to be hosted in Apache Felix.
There will be one central library that provides (amongst other things) a bunch of common JPA
classes.
Then there will be a continually increasing number of additional bundles providing web services
that use those JPA and, crucially, add to them.
Each of the web service classes will need at least one JPA class that derives from a class
in the shared library.
I don't need the library to share any state between the web services, it's just a bunch of
common code.

Is it possible for a jar to extend the persistence.xml defined in another jar?

If not, do I need to have a separate persistence context for the library and the web service
jars?

Can OpenJPA work as nothing more than a bunch of classes exposed from a bundle?

Thanks

Jim

Mime
View raw message