org.exolab.jms.client
Interface JmsMessageListener

All Known Implementing Classes:
org.exolab.jms.client.JmsSession, JmsSessionStubImpl

public interface JmsMessageListener

This interface specifies methods to enable asynchronously delivery of messages to clients.

Version:
$Revision: 1.4 $ $Date: 2007/01/24 12:00:28 $
Author:
Jim Alateras

Method Summary
 boolean onMessage(MessageImpl message)
          Deliver a message.
 void onMessageAvailable()
          Inform the session that there is a message available for a synchronous consumer.
 

Method Detail

onMessage

public boolean onMessage(MessageImpl message)
                  throws java.rmi.RemoteException
Deliver a message.
Parameters:
message - the message to deliver
Returns:
true if the message was delivered; otherwise false.
Throws:
java.rmi.RemoteException - if the message can't be delivered

onMessageAvailable

public void onMessageAvailable()
                        throws java.rmi.RemoteException
Inform the session that there is a message available for a synchronous consumer.


Copyright © 1999-2007 The OpenJMS Group. All Rights Reserved.