throw new ConfigurationException("CommandExecutorThread only works with the DbMessageService implementation of the MessageService. please, configure jbpm.cfg.xml accordingly.");
}
if (dbMessageService==null) {
throw new ConfigurationException("no messaging service available");
}
message = dbMessageService.receiveNoWait(destination);
if (message!=null) {
checkForMoreMessages = true;
Command command = (Command) message;
log.trace("executing command '"+command+"'");