|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This is an RMI wrapper for the JmsServerSession object. It allows remote access to this object.
For more semantic information on this object refer to org.exolab.jms.server. JmsServerSession.
All the methods throw RemoteException which is used to indicate an RMI specific error.
org.exolab.jms.server.JmsServerSession,
org.exolab.jms.server.rmi.RemoteJmsServerConnectionIfc| Method Summary | |
void |
acknowledgeMessage(long clientId,
java.lang.String messageId)
Acknowledge that the message with the following id has been processed |
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 specified receiver |
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 |
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 |
| Method Detail |
public java.lang.String getClientId()
throws java.rmi.RemoteException
java.rmi.RemoteException -
public java.lang.String getSessionId()
throws javax.jms.JMSException,
java.rmi.RemoteException
java.rmi.RemoteException -
public void close()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - java.rmi.RemoteException -
public void acknowledgeMessage(long clientId,
java.lang.String messageId)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - the client identitymessageId - id of message to ackJMSException - if method does not completejava.rmi.RemoteException -
public void sendMessage(javax.jms.Message message)
throws javax.jms.JMSException,
java.rmi.RemoteException
message - message to sendJMSException - java.rmi.RemoteException -
public void sendMessages(java.util.Vector messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
messages - 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 messageclientId - 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
clientId - 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
queue - queue to createJMSException - java.rmi.RemoteException -
public void createTopic(JmsTopic topic)
throws javax.jms.JMSException,
java.rmi.RemoteException
topic - 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
queue - 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
queue - receiver destinationJMSException. - java.rmi.RemoteException -
public void createBrowser(JmsQueue queue,
long clientId,
java.lang.String selector)
throws javax.jms.JMSException,
java.rmi.RemoteException
You cannot create more than one queue browser for the same queue in a single session.
queue - queue to browseclientId - identity of the clientselector - message selector. This may be nullJMSException - java.rmi.RemoteException -
public void deleteReceiver(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - the identity of the receiverJMSException. - java.rmi.RemoteException -
public void deleteSender(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - the unique client identityJMSException. - java.rmi.RemoteException -
public void deleteBrowser(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - - the client identityJMSException - java.rmi.RemoteException -
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
topic - subscriber destinationname - consumer nameclientId - 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
topic - receiver destinationJMSException. - java.rmi.RemoteException -
public void deleteSubscriber(long clientId)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - the client identityJMSException. -
public void deletePublisher(JmsTopic topic)
throws javax.jms.JMSException,
java.rmi.RemoteException
topic - topic nameJMSException. - RemoteException. -
public void unsubscribe(java.lang.String name)
throws javax.jms.JMSException,
java.rmi.RemoteException
name - the name used to identify the
subscriptionJMSException - if the subscription cannot be removedjava.rmi.RemoteException -
public void stopMessageDelivery()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void startMessageDelivery()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void recover()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void commit()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void commit(java.lang.String[] messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void rollback()
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void rollback(java.lang.String[] messages)
throws javax.jms.JMSException,
java.rmi.RemoteException
JMSException - RemoteException. -
public void setMessageListener(RemoteJmsMessageListenerIfc listener)
throws javax.jms.JMSException,
java.rmi.RemoteException
If the listener is null then throw JMSException
listener - listener to delivery messages too.JMSException - RemoteException. -
public void enableAsynchronousDelivery(long clientId,
long id,
boolean enable)
throws javax.jms.JMSException,
java.rmi.RemoteException
clientId - - the id of the client to checkid - - the last message asynchronously deliveredenable - - true to enable; false to disable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||