<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<tt>Scott,<br>
<br>
The Enterprise OSGi spec defines the roles of <br>
</tt>
<ul>
<li><tt>JPA Provider - An implementation of JPA, providing the
Persistence Provider and JPA Services</tt></li>
<li><tt>Persistence Bundle - A bundle that includes, a
Meta-Persistence header, one or more Persistence Descriptor
resources, and the entity classes specified by the Persistence
Units in those resources.</tt></li>
<li><tt>Client Bundle - The bundle that uses the Persistence
Bundle to retrieve and store objects.</tt><tt><br>
</tt></li>
</ul>
<tt>in the context of a pure OSGi Runtime (i.e. Felix, Equinox).
What we need to do in the context of AS7 is to make sure that
client bundles developed against the this spec run on AS7. We are
not trying to build an OSGi JPA Provider that runs on <tt>a pure
OSGi Runtime - so integration rather than implementation.</tt></tt><br>
<tt><br>
This essentially means that the JPA subsubsystem and its
associated OSGi extension can handle OSGi JPA deployments and make
the EntityManagerFactory/<tt>EntityManagerFactoryBuilder services
available.<br>
<br>
I took a first hit on this task and filed <a
href="https://github.com/jbossas/jboss-as/pull/2992">#2992</a>
which would resolve </tt></tt><tt><tt><a
href="https://issues.jboss.org/browse/AS7-5405">[AS7-5405]
Initial Enterprise OSGi JPA implementation</a></tt></tt>. <tt>As
the name suggests this is an initial implementation which supports
the deployment of an persistence/client bundle, registers </tt><tt>EntityManagerFactory
and exercises entity persistence on the default provider.<br>
<br>
Additionally, I filed <a
href="https://issues.jboss.org/browse/AS7-5476">[AS7-5476]
Complete support for OSGi JPA</a> which outlines missing
functionality that I'm aware of.<br>
<br>
The HHH-7527 effort can be done in parallel, but is not a
prerequisite for Enterprise OSGi JPA in AS7.<br>
<br>
cheers<br>
--thomas<br>
</tt><tt><br>
</tt><tt><br>
</tt>
<div class="moz-cite-prefix">On 08/31/2012 03:42 PM, Scott Marlow
wrote:<br>
</div>
<blockquote cite="mid:5040BF2F.4050108@redhat.com" type="cite">Thomas,
<br>
<br>
I see that AS7-5465 is targeted for AS 7.2 but 7.2 doesn't package
a OSGI enabled persistence provider. That will change when we add
OSGI support to Hibernate (via HHH-7527 & anything else that
is needed). Its not yet clear which version of AS, will be
aligned with the Hibernate version that includes the OSGi support.
<br>
<br>
I believe that the EclipseLink persistence provider has OSGi
support. Not sure yet about the others. We will soon have the
ability to (globally) configure the default persistence provider
(module name). So, it should be less pain to choose an OSGi
enabled provider of the users choice.
<br>
<br>
So, until we have a OSGi enabled version of Hibernate in AS, how
can we test with another OSGi enabled persistence provider? I
heard that we have some unit tests that download Maven artifacts
via the ShrinkWrap Maven resolver but I have yet to see that in
action in the AS7 tests that I have looked at.
<br>
<br>
What do you suggest for testing this OSGi Enterprise JPA stuff...
<br>
<br>
Scott
<br>
<br>
On 08/31/2012 07:16 AM, Thomas Diesler wrote:
<br>
<blockquote type="cite">Hi Paul,
<br>
<br>
could you possibly provide a javax.persistence API bundle?
<br>
<br>
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/AS7-5465">https://issues.jboss.org/browse/AS7-5465</a>
<br>
<br>
cheers
<br>
--thomas
<br>
<br>
</blockquote>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
Thomas Diesler
JBoss OSGi Lead
JBoss, a division of Red Hat
xxxxxxxxxxxxxxxxxxxxxxxxxxxx
</pre>
</body>
</html>