title: Cleanup of openJPA when OSGI bundle stops
body: <p>I have a set of OSGi bundles that use openjpa in karaf to access a Postgres database.  During development, I need to frequently stop, update and restart the bundles.  Although there are no log messages, I am unable to connect to the services after the re-deployment cycle.  If I halt the karaf instance and restart, I am able to successfully connect to the bundles.</p>
  
  <p>I "think" this is due to not cleaning up JPA resources.  </p>
  
  <p>So my question is <strong>when the JPA persistence bundle stops, what cleanup needs to be done?</strong></p>