Search in sources :

Example 1 with IMessageHandler

use of nl.nn.adapterframework.core.IMessageHandler in project iaf by ibissource.

the class GenericMDB method onMessage.

public void onMessage(Message message) {
    try {
        // in locking
        if (this.listener == null) {
            this.listener = retrieveListener();
        }
        IMessageHandler handler = this.listener.getHandler();
        handler.processRawMessage(listener, message);
    } catch (ListenerException ex) {
        log.error(ex, ex);
        listener.getExceptionListener().exceptionThrown(listener, ex);
        rollbackTransaction();
    }
}
Also used : ListenerException(nl.nn.adapterframework.core.ListenerException) IMessageHandler(nl.nn.adapterframework.core.IMessageHandler)

Aggregations

IMessageHandler (nl.nn.adapterframework.core.IMessageHandler)1 ListenerException (nl.nn.adapterframework.core.ListenerException)1