ORM does not currently consider the chain of ServiceRegistries during shutdown, causing this issue. Currently, closing the SessionFactory shuts down the SessionFactoryServiceRegistry only. The ConnectionProvider is closed only when the StandardServiceRegistry (outlives the SessionFactory) itself is destroyed.
|