jrun.jms.core.client.rmi
Class RmiJmsMessageListener

java.lang.Object
  |
  +--java.rmi.server.RemoteObject
        |
        +--java.rmi.server.RemoteServer
              |
              +--java.rmi.server.UnicastRemoteObject
                    |
                    +--jrun.jms.core.client.rmi.RmiJmsMessageListener
All Implemented Interfaces:
java.rmi.Remote, RemoteJmsMessageListenerIfc, java.io.Serializable

public class RmiJmsMessageListener
extends java.rmi.server.UnicastRemoteObject
implements RemoteJmsMessageListenerIfc

This is an implementation of the RemoteJmsMessageListenerIfc interface. It is instantiayed with an instance of a JmsSession object and delegates the request down to it.

Version:
$Revision: 1.2 $ $Date: 2001/05/24 15:34:36 $ created by Jim Alateras
See Also:
Serialized Form

Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
RmiJmsMessageListener(JmsMessageListener listener, int port)
          Instantiate an instance of this class with a non null listener.
 
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 onMessages(java.util.Vector messages)
          This method is called back by the server whenever it has one or more messages for this session
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RmiJmsMessageListener

public RmiJmsMessageListener(JmsMessageListener listener,
                             int port)
                      throws javax.jms.JMSException,
                             java.rmi.RemoteException
Instantiate an instance of this class with a non null listener. If a null MessageListener is specified then RemoteException is thrown.
Parameters:
listener -  
Throws:
JMSException -  
java.rmi.RemoteException -  
Method Detail

onMessage

public void onMessage(javax.jms.Message message)
               throws java.rmi.RemoteException
Description copied from interface: RemoteJmsMessageListenerIfc
This method is called back by the server whenever it has a message for this session
Specified by:
onMessage in interface RemoteJmsMessageListenerIfc
Following copied from interface: jrun.jms.core.client.rmi.RemoteJmsMessageListenerIfc
Parameters:
message -  
Throws:
java.rmi.RemoteException -  

onMessages

public void onMessages(java.util.Vector messages)
                throws java.rmi.RemoteException
Description copied from interface: RemoteJmsMessageListenerIfc
This method is called back by the server whenever it has one or more messages for this session
Specified by:
onMessages in interface RemoteJmsMessageListenerIfc
Following copied from interface: jrun.jms.core.client.rmi.RemoteJmsMessageListenerIfc
Parameters:
messages - - vector of messages
Throws:
java.rmi.RemoteException -  


Copyright � 2002 Macromedia Corporation. All Rights Reserved.