|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This class RMI enables the JmsServerConnection by allowing clients to access the object across another VM. It basically has been grafted off the JmsServerConnection class with the RemoteException appended to the message signature.
JmsServerConnection
Method Summary | |
void |
close()
Close all the sessions allocated to this collection. |
RemoteJmsServerSessionIfc |
createSession(int ackMode,
boolean transacted)
Create and return a sesion for this connection Assign the connection's clientId to the sessions. |
void |
deleteSession(RemoteJmsServerSessionIfc session)
Delete the specified session from the server. |
java.lang.String |
getConnectionId()
Retrieve the identity of this conection. |
int |
getSessionCount()
Return the number of session objects currently allocated to this connection. |
java.util.Enumeration |
getSessions()
Return an enumeration of RemoteJmsServerSessionIfc objects currently allocated to this session. |
void |
ping()
Send a ping to the server. |
void |
start()
Start all the sessions allocated to this connection. |
void |
stop()
Stop all the sessions allocated to this collection. |
Method Detail |
public RemoteJmsServerSessionIfc createSession(int ackMode, boolean transacted) throws javax.jms.JMSException, java.rmi.RemoteException
The created session represents an endpoint with the JmsServer where you can create consumers, producers and destinations. If there is an error creating the session then RemoteException is thrown
ackMode
- the ack mode for the sessionjavax.jms.JMSException
- java.rmi.RemoteException
- public void deleteSession(RemoteJmsServerSessionIfc session) throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
session
- session to deletejavax.jms.JMSException
- java.rmi.RemoteException
- public int getSessionCount() throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
javax.jms.JMSException
- java.rmi.RemoteException
- public java.util.Enumeration getSessions() throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
javax.jms.JMSException
- java.rmi.RemoteException
- public void start() throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
javax.jms.JMSException
- java.rmi.RemoteException
- public void stop() throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
javax.jms.JMSException
- java.rmi.RemoteException
- public void close() throws javax.jms.JMSException, java.rmi.RemoteException
If there is a problem completing this request then throw RemoteException exception
javax.jms.JMSException
- java.rmi.RemoteException
- public java.lang.String getConnectionId() throws java.rmi.RemoteException
java.rmi.RemoteException
- public void ping() throws java.rmi.RemoteException
java.rmi.RemoteException
-
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |