registerNewJobinstance(buffer);
}
}
private void registerNewJobinstance(MessageExchangeBuffer buffer) {
TalendESBJob job = factory.newTalendESBJob();
job.setEndpointRegistry(registry);
RuntimeESBProviderCallback callback = new RuntimeESBProviderCallback(buffer, job, name, args);
job.setProviderCallback(callback);
execService.execute(callback);
instances++;
LOG.info("Created instance " + instances + " of job " + name + ".");
}