use of org.jbpm.kie.services.impl.AbstractDeploymentService in project droolsjbpm-integration by kiegroup.
the class JbpmKieServerExtension method destroy.
@Override
public void destroy(KieServerImpl kieServer, KieServerRegistry registry) {
((AbstractDeploymentService) deploymentService).shutdown();
if (executorService != null) {
executorService.destroy();
}
EntityManagerFactory emf = EntityManagerFactoryManager.get().remove(persistenceUnitName);
if (emf != null && emf.isOpen()) {
emf.close();
}
}
Aggregations