Search in sources :

Example 1 with EJBContextIdentityProvider

use of org.jbpm.services.ejb.impl.identity.EJBContextIdentityProvider in project jbpm by kiegroup.

the class DeploymentServiceEJBImpl method onInit.

// inject resources
@PostConstruct
public void onInit() {
    isExecutorAvailable = isExecutorOnClasspath();
    if (identityProvider.isUnsatisfied()) {
        setIdentityProvider(new EJBContextIdentityProvider(context));
    } else {
        setIdentityProvider(identityProvider.get());
    }
    setManagerFactory(new RuntimeManagerFactoryImpl());
    super.onInit();
}
Also used : RuntimeManagerFactoryImpl(org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl) EJBContextIdentityProvider(org.jbpm.services.ejb.impl.identity.EJBContextIdentityProvider) PostConstruct(javax.annotation.PostConstruct)

Aggregations

PostConstruct (javax.annotation.PostConstruct)1 RuntimeManagerFactoryImpl (org.jbpm.runtime.manager.impl.RuntimeManagerFactoryImpl)1 EJBContextIdentityProvider (org.jbpm.services.ejb.impl.identity.EJBContextIdentityProvider)1