Package org.camunda.bpm.container.impl.ejb

Source Code of org.camunda.bpm.container.impl.ejb.JobExecutionHandlerMDB

package org.camunda.bpm.container.impl.ejb;

import javax.ejb.MessageDriven;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

import org.camunda.bpm.container.impl.threading.ra.inflow.JobExecutionHandler;
import org.camunda.bpm.engine.impl.cmd.ExecuteJobsCmd;
import org.camunda.bpm.engine.impl.interceptor.CommandExecutor;


/**
* <p>MessageDrivenBean implementation of the {@link JobExecutionHandler} interface</p>
*
* @author Daniel Meyer
*/
@MessageDriven(
  name="JobExecutionHandlerMDB",
  messageListenerInterface=JobExecutionHandler.class
)
@TransactionAttribute(TransactionAttributeType.NOT_SUPPORTED)
public class JobExecutionHandlerMDB implements JobExecutionHandler {

  public void executeJob(String job, CommandExecutor commandExecutor) {
    commandExecutor.execute(new ExecuteJobsCmd(job));
  }

}
TOP

Related Classes of org.camunda.bpm.container.impl.ejb.JobExecutionHandlerMDB

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.