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.
I "think" this is due to not cleaning up JPA resources.
So my question is when the JPA persistence bundle stops, what cleanup needs to be done?