|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--jrun.jms.core.server.rmi.RmiJmsServerSession
This is an implementation of the RemoteJmsServerSessionIfc which delegates all requests to the JmsServerSession class. Actually, an instsnce of this class cannot be created without a JmsServerSession object.
org.exolab.jms.server.JmsServerSession,
org.exolab.jms.server.rmi.RemoteJmsServerConnectionIfc, Serialized Form| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
RmiJmsServerSession(JmsServerSession session,
int port)
Instantiate an instance of this class given a JmsServerSession. |
|
| Method Summary | |
void |
acknowledgeMessage(long clientId,
java.lang.String messageId)
Acknowledge that the message id for the specified client identity. |
void |
close()
Close and release any resource allocated to this session. |
void |
commit()
Commit the session |
void |
commit(java.lang.String[] messages)
Commit group of messages on the session |
void |
createBrowser(JmsQueue queue,
long clientId,
java.lang.String selector)
Create a queue browser for this session. |
void |
createPublisher(JmsTopic topic)
Create a publisher endpoint for this session. |
void |
createQueue(JmsQueue queue)
Create a queue with the specified name. |
void |
createReceiver(JmsQueue queue,
long clientId,
java.lang.String selector)
Create a receiver endpoint for this session. |
void |
createSender(JmsQueue queue)
Create a sender endpoint for this session. |
void |
createSubscriber(JmsTopic topic,
java.lang.String name,
long clientId,
java.lang.String selector,
boolean noLocal)
Create a subscriber endpoint for this session. |
void |
createTopic(JmsTopic topic)
Create a topic with the specified name. |
void |
deleteBrowser(long clientId)
Delete the queue browser associated with the specified queue from the session. |
void |
deletePublisher(JmsTopic topic)
Delete the publisher for the specified topic. |
void |
deleteReceiver(long clientId)
Delete the receiver for the specified queue. |
void |
deleteSender(long clientId)
Delete the sender for the specified queue. |
void |
deleteSubscriber(long clientId)
Delete the subscriber for the specified topic. |
void |
enableAsynchronousDelivery(long clientId,
long id,
boolean enable)
Enable or disable asynchronous message delivery for a particular consumer |
java.lang.String |
getClientId()
Return a reference to the client id. |
java.lang.String |
getSessionId()
Return a reference to the session id |
void |
onMessage(javax.jms.Message message)
|
void |
onMessages(java.util.Vector messages)
Send the specified collection of messages to the client |
javax.jms.Message |
receiveMessage(long clientId,
long wait)
Return the next message for the specified client. |
java.util.Vector |
receiveMessages(long clientId,
int count)
Return upto count messages from the endpoint with the specified client identity. |
void |
recover()
Recover the session |
void |
rollback()
Rollback the session |
void |
rollback(java.lang.String[] messages)
Rollback group of messages on the session |
void |
sendMessage(javax.jms.Message message)
Send the specified message to the server. |
void |
sendMessages(java.util.Vector messages)
Send the specified messages to the server. |
void |
setMessageListener(RemoteJmsMessageListenerIfc listener)
All server side sessions register with the consumer manager for message consumption (i.e push-model). |
void |
startMessageDelivery()
Start message delivery to this session. |
void |
stopMessageDelivery()
Stop message delivery to this session. |
void |
unsubscribe(java.lang.String name)
Unsubscribe a durable subscription |
| 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 |
public RmiJmsServerSession(JmsServerSession session,
int port)
throws javax.jms.JMSException,
java.rmi.RemoteException
session - JMSException - java.rmi.RemoteException - | Method Detail |
public java.lang.String getClientId()
throws java.rmi.RemoteException
getClientId in interface RemoteJmsServerSessionIfcjava.rmi.RemoteException -
public java.lang.String getSessionId()
throws javax.jms.JMSException,
java.rmi.RemoteException
getSessionId in interface RemoteJmsServerSessionIfcjava.rmi.RemoteException -
public void close()
throws javax.jms.JMSException,
java.rmi.RemoteException
close in interface RemoteJmsServerSessionIfcJMSException - java.rmi.RemoteException -
public void acknowledgeMessage(long clientId,
java.lang.String messageId)
throws javax.jms.JMSException,
java.rmi.RemoteException
acknowledgeMessage in interface RemoteJmsServerSessionIfcclientId - the client identity.messageId - identity of the messageJMSException - if method does not completejava.rmi.RemoteException -
public void sendMessage(javax.jms.Message message)
throws javax.jms.JMSException,
java.rmi.RemoteException
sendMessage in interface RemoteJmsServerSessionIfcmessage - message to sendJMSException - java.rmi.RemoteException -
public void sendMessages(java.util.Vector messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
sendMessages in interface RemoteJmsServerSessionIfcmessages - messages to sendJMSException - java.rmi.RemoteException -
public javax.jms.Message receiveMessage(long clientId,
long wait)
throws javax.jms.JMSException,
java.rmi.RemoteException
wait
parameter indicates how long many milliseconds to wait for a message
before returning. If wait is 0 then do not wait at all. If
wait is -1 then wait indefinitely for the next messagereceiveMessage in interface RemoteJmsServerSessionIfcclientId - the client identitywait - number of ms to waitJMSException - if there is an app level problemjava.rmi.RemoteException - if there is a RMI based exception.
public java.util.Vector receiveMessages(long clientId,
int count)
throws javax.jms.JMSException,
java.rmi.RemoteException
RemoteJmsServerSessionIfcreceiveMessages in interface RemoteJmsServerSessionIfcjrun.jms.core.server.rmi.RemoteJmsServerSessionIfcclientId - the client identitycount - max number of messages to receiveJMSException - if there is an app level problemjava.rmi.RemoteException - if there is a RMI based exception.
public void createQueue(JmsQueue queue)
throws javax.jms.JMSException,
java.rmi.RemoteException
createQueue in interface RemoteJmsServerSessionIfcqueue - queue to createJMSException - java.rmi.RemoteException -
public void createTopic(JmsTopic topic)
throws javax.jms.JMSException,
java.rmi.RemoteException
createTopic in interface RemoteJmsServerSessionIfctopic - topic to createJMSException - java.rmi.RemoteException -
public void createReceiver(JmsQueue queue,
long clientId,
java.lang.String selector)
throws javax.jms.JMSException,
java.rmi.RemoteException
You cannot create more than one receiver for the same destination
createReceiver in interface RemoteJmsServerSessionIfcqueue - receiver destinationclientId - the session allocated identifier of
this consumerselector - the selector to filter messages.
This may be null.JMSException. - java.rmi.RemoteException -
public void createSender(JmsQueue queue)
throws javax.jms.JMSException,
java.rmi.RemoteException
You cannot create more than one receiver for the same destination
createSender in interface RemoteJmsServerSessionIfcqueue - receiver destinationJMSException. - java.rmi.RemoteException -
public void createBrowser(JmsQueue queue,
long clientId,
java.lang.String selector)
throws javax.jms.JMSException
You cannot create more than one queue browser for the same queue in a single session.
createBrowser in interface RemoteJmsServerSessionIfcqueue - queue to browseclientId - the client identityselector - message selector. This may be nullJMSException -
public void deleteReceiver(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
deleteReceiver in interface RemoteJmsServerSessionIfcid - identity of receiverJMSException. - java.rmi.RemoteException -
public void deleteSender(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
deleteSender in interface RemoteJmsServerSessionIfcclientId - identity of client to deleteJMSException. - java.rmi.RemoteException -
public void deleteBrowser(long clientId)
throws javax.jms.JMSException
deleteBrowser in interface RemoteJmsServerSessionIfcclientId - the identity of the clientJMSException -
public void createSubscriber(JmsTopic topic,
java.lang.String name,
long clientId,
java.lang.String selector,
boolean noLocal)
throws javax.jms.JMSException,
java.rmi.RemoteException
You cannot create more than one subscriber for the same destination
createSubscriber in interface RemoteJmsServerSessionIfctopic - subscriber destinationname - name of the cnsumer; can be nullclientId - the session allocated identifier of
this consumerselector - the selector to filter messages.
This may be null.noLocal - inhibit consuming messages on same
connection.JMSException - java.rmi.RemoteException -
public void createPublisher(JmsTopic topic)
throws javax.jms.JMSException,
java.rmi.RemoteException
You cannot create more than one publisher for the same destination
createPublisher in interface RemoteJmsServerSessionIfctopic - receiver destinationJMSException. - java.rmi.RemoteException -
public void deleteSubscriber(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
deleteSubscriber in interface RemoteJmsServerSessionIfcclientId - the identity of the clientJMSException. -
public void deletePublisher(JmsTopic topic)
throws javax.jms.JMSException,
java.rmi.RemoteException
deletePublisher in interface RemoteJmsServerSessionIfctopic - topic objectJMSException. - RemoteException. -
public void unsubscribe(java.lang.String name)
throws javax.jms.JMSException
unsubscribe in interface RemoteJmsServerSessionIfcname - the name used to identify the
subscriptionJMSException - if the subscription cannot be removed
public void stopMessageDelivery()
throws javax.jms.JMSException,
java.rmi.RemoteException
stopMessageDelivery in interface RemoteJmsServerSessionIfcJMSException - RemoteException. -
public void startMessageDelivery()
throws javax.jms.JMSException,
java.rmi.RemoteException
startMessageDelivery in interface RemoteJmsServerSessionIfcJMSException - RemoteException. -
public void recover()
throws javax.jms.JMSException,
java.rmi.RemoteException
recover in interface RemoteJmsServerSessionIfcJMSException - RemoteException. -
public void commit(java.lang.String[] messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
commit in interface RemoteJmsServerSessionIfcmessages - - ids of the messages to rollbackJMSException - RemoteException. -
public void commit()
throws javax.jms.JMSException,
java.rmi.RemoteException
commit in interface RemoteJmsServerSessionIfcJMSException - RemoteException. -
public void rollback()
throws javax.jms.JMSException,
java.rmi.RemoteException
rollback in interface RemoteJmsServerSessionIfcJMSException - RemoteException. -
public void rollback(java.lang.String[] messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
rollback in interface RemoteJmsServerSessionIfcmessages - - ids of the messages to rollbackJMSException - RemoteException. -
public void setMessageListener(RemoteJmsMessageListenerIfc listener)
throws javax.jms.JMSException,
java.rmi.RemoteException
If the listener is null then throw JMSException
setMessageListener in interface RemoteJmsServerSessionIfclistener - listener to delivery messages too.JMSException - RemoteException. -
public void enableAsynchronousDelivery(long clientId,
long id,
boolean enable)
throws javax.jms.JMSException,
java.rmi.RemoteException
enableAsynchronousDelivery in interface RemoteJmsServerSessionIfcclientId - - the id of the client to checkid - - the last message asynchronously delivered to consumerenable - - true to enable; false to disablepublic void onMessage(javax.jms.Message message)
public void onMessages(java.util.Vector messages)
JmsMessageListeneronMessages in interface JmsMessageListenerjrun.jms.core.client.JmsMessageListenermessages - - collection of MessageHandle objects
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||