Search in sources :

Example 1 with PipeStartException

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);
        }
    }
}
Also used : PipeStartException(nl.nn.adapterframework.core.PipeStartException) Iterator(java.util.Iterator) SenderException(nl.nn.adapterframework.core.SenderException)

Aggregations

Iterator (java.util.Iterator)1 PipeStartException (nl.nn.adapterframework.core.PipeStartException)1 SenderException (nl.nn.adapterframework.core.SenderException)1