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
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.