javax.jms
Interface MessageListener


public abstract interface MessageListener

A MessageListener is used to receive asynchronously delivered messages.

Each consumer must insure that it passes messages serially to the listener. This means that a listener for a single consumer can assume that onMessage is not called with the next message until it has completed the last.

Version:
1.0 - 13 March 1998
Author:
Mark Hapner, Rich Burridge

Method Summary
 void onMessage(Message message)
          Pass a message to the Listener.
 

Method Detail

onMessage


public void onMessage(Message message)
Pass a message to the Listener.
Parameters:
message - the message passed to the listener.