org.exolab.jms.client.rmi
Class RmiJmsMessageListener
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--org.exolab.jms.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.4 $ $Date: 2003/08/07 13:32:54 $
- Author:
- Jim Alateras
- See Also:
- Serialized Form
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
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 |
RmiJmsMessageListener
public RmiJmsMessageListener(JmsMessageListener listener)
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:
javax.jms.JMSException
- java.rmi.RemoteException
-
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:
org.exolab.jms.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:
org.exolab.jms.client.rmi.RemoteJmsMessageListenerIfc
- Parameters:
messages
- - vector of messages- Throws:
java.rmi.RemoteException
-
onMessageAvailable
public void onMessageAvailable(long clientId)
throws java.rmi.RemoteException
- Description copied from interface:
RemoteJmsMessageListenerIfc
- Notify the client that a message is available for it on the server
- Specified by:
onMessageAvailable
in interface RemoteJmsMessageListenerIfc
- Following copied from interface:
org.exolab.jms.client.rmi.RemoteJmsMessageListenerIfc
- Parameters:
clientId
- - the id of the client to notify- Throws:
java.rmi.RemoteException
-
Copyright © 1999-2004 The OpenJMS Group. All Rights Reserved.