We're updating the issue view to help you get more done. 

EMF cannot be created, closed, then re-created in OSGi

Description

In non-managed JPA OSGi:

1 2 3 emf = persistenceProvider.createEntityManagerFactory( "HibernateOSGi_AppManaged", null ); emf.close(); emf = persistenceProvider.createEntityManagerFactory( "HibernateOSGi_AppManaged", null );

Results in an NPE. The persistence unit cannot be found more than once.

Environment

None

Status

Assignee

Brett Meyer

Reporter

Brett Meyer

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Priority

Major