That's correct, the role of JPA extender is to facilitate enhancement at
this point. It is trivial to add an activator in the entity bundle to
register the emf as a service. Our samples take this approach.
Sahoo
On Tuesday 04 December 2012 12:52 AM, forums_at_java.net wrote:
> I have another question, the JPA Extender, does not as far as I know
> register
> the entityManagerFactory of a JPA Bundle as an OSGI service.
> Therefore, if
> any OSGi service call comes to the WAB that owns the persistence unit, it
> will not be able to persist to database in any way (not even by
> attempting to
> find the emf with the bundle context). Is the role of the JPA extender
> supposed to be only to enhance entities?
>
> --
>
> [Message sent by forum member 'chejavara']
>
> View Post: http://forums.java.net/node/892749
>
>