use of nl.nn.adapterframework.core.PipeStartException in project iaf by ibissource.
the class StreamTransformerPipe method start.
public void start() throws PipeStartException {
super.start();
for (Iterator it = registeredRecordHandlers.keySet().iterator(); it.hasNext(); ) {
String recordHandlerName = (String) it.next();
IRecordHandler handler = getRecordHandler(recordHandlerName);
try {
handler.open();
} catch (SenderException e) {
throw new PipeStartException(getLogPrefix(null) + "cannot start recordhandler [" + recordHandlerName + "]", e);
}
}
for (Iterator it = registeredResultHandlers.keySet().iterator(); it.hasNext(); ) {
String resultHandlerName = (String) it.next();
IResultHandler handler = getResultHandler(resultHandlerName);
try {
handler.open();
} catch (SenderException e) {
throw new PipeStartException(getLogPrefix(null) + "cannot start resulthandler [" + resultHandlerName + "]", e);
}
}
}
Aggregations