// build the post-receiving actions
final List<Action> postReceivingActions = buildActions(connectorElement.element("post-receiving-actions"));
String id = connectorElement.attributeValue("id");
int priority = getPriority(connectorElement);
ConnectorService processorService = addConnector(id, connector);
processorService.setPriority(priority);
// set maxConcurrentMsgs of the ProcessorService
int maxConcurrentMsgs = getMaxConcurrentMsgs(connectorElement);
processorService.setMaxConcurrentMsgs(maxConcurrentMsgs);
// add acceptors to the processor
for (Acceptor acceptor : acceptors) {
processorService.addAcceptor(acceptor);
}
// add pre-processing-actions to the processor
for (Action action : preProcessingActions) {
processorService.addPreProcessingAction(action);
}
// add post-processing-actions to the processor
for (Action action : postProcessingActions) {
processorService.addPostProcessingAction(action);
}
// add post-receiving-actions to the processor
for (Action action : postReceivingActions) {
processorService.addPostReceivingAction(action);
}
}