org.exolab.jms.client.rmi
Interface RemoteJmsMessageListenerIfc

All Superinterfaces:
java.rmi.Remote
All Known Implementing Classes:
RmiJmsMessageListener, RmiJmsSessionStub

public interface RemoteJmsMessageListenerIfc
extends java.rmi.Remote

This is an RMI implementation of a RMI-based MessageListener. The message listener is used by the server to push down all related messages.

Version:
$Revision: 1.4 $ $Date: 2003/08/07 13:32:54 $
Author:
Jim Alateras

Method Summary
 void onMessage(javax.jms.Message message)
          This method is called back by the server whenever it has a message for this session
 void onMessageAvailable(long clientId)
          Notify the client that a message is available for it on the server
 void onMessages(java.util.Vector messages)
          This method is called back by the server whenever it has one or more messages for this session
 

Method Detail

onMessage

void onMessage(javax.jms.Message message)
               throws java.rmi.RemoteException
This method is called back by the server whenever it has a message for this session

Parameters:
message -
Throws:
java.rmi.RemoteException

onMessages

void onMessages(java.util.Vector messages)
                throws java.rmi.RemoteException
This method is called back by the server whenever it has one or more messages for this session

Parameters:
messages - - vector of messages
Throws:
java.rmi.RemoteException

onMessageAvailable

void onMessageAvailable(long clientId)
                        throws java.rmi.RemoteException
Notify the client that a message is available for it on the server

Parameters:
clientId - - the id of the client to notify
Throws:
java.rmi.RemoteException


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