Search in sources :

Example 1 with AbstractDeploymentService

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();
    }
}
Also used : EntityManagerFactory(javax.persistence.EntityManagerFactory) AbstractDeploymentService(org.jbpm.kie.services.impl.AbstractDeploymentService)

Aggregations

EntityManagerFactory (javax.persistence.EntityManagerFactory)1 AbstractDeploymentService (org.jbpm.kie.services.impl.AbstractDeploymentService)1