org.apache.servicemix.client
Interface MessageListener

All Known Implementing Classes:
MessageList

public interface MessageListener

A listener which is called when a message is available to be processed.

Version:
$Revision: $

Method Summary
 void onMessage(javax.jbi.messaging.MessageExchange exchange, Message message)
          Processes the message.
 

Method Detail

onMessage

void onMessage(javax.jbi.messaging.MessageExchange exchange,
               Message message)
               throws Exception
Processes the message. By the completion of this method call, without exceptions being thrown the message is assumed to be processed unless the status is updated on the exchange.

Parameters:
exchange -
message -
Throws:
Exception - if the message could not be processed correctly


Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.