01: package dalma.endpoints.jbi;
02:
03: import javax.jbi.messaging.MessageExchange;
04:
05: /**
06: * @author Kohsuke Kawaguchi
07: */
08: public interface MessageExchangeHandler {
09: /**
10: * Called for each new {@link MessageExchange}.
11: *
12: * @param message
13: * represents a received message.
14: * always non-null.
15: * @throws Exception
16: * if the method throws any {@link Throwable},
17: * it will be simply logged.
18: */
19: void onNewMessage(MessageExchange message) throws Exception;
20: }
|