|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jrun.jms.core.server.JmsServerConnection
A connection is created for every client connecting to the JmsServer. A connection supports multiple sessions and each session has an independent producer and/or consumer.
A client can create sessions through the connection. The maximum number of sessions that a client can connect is capped at MAX_SESSIONS.
org.exolab.jms.server.JmsConnectionManager| Method Summary | |
void |
close()
Close all the sessions allocated to this collection. |
JmsServerSession |
createSession(int ackMode,
boolean transacted)
Create a sesion for the specified connection. |
void |
deleteSession(JmsServerSession session)
Delete the specified session. |
java.lang.String |
getClientId()
Retrieve the client identity of this conection. |
java.lang.String |
getConnectionId()
Retrieve the identity of this conection. |
JmsServerSession |
getSession(java.lang.String sessionId)
Retrive the JmsServerSession with the given sessionId. |
int |
getSessionCount()
Return the number of sessions currently allocated to this connection. |
java.util.Enumeration |
getSessions()
Return an enumeration of all the sessions associated with this connection |
void |
start()
Start all the sessions allocated to this connection. |
void |
stop()
Stop all the sessions allocated to this collection. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public JmsServerSession createSession(int ackMode,
boolean transacted)
The created session represents an endpoint with the JmsServer where you can create consumers. producers and destinations.
ackMode - the ackmode for the sessiontransacted - true if the session is transactedpublic void deleteSession(JmsServerSession session)
session - session to deleteJMSException - public int getSessionCount()
public java.util.Enumeration getSessions()
public void start()
public void stop()
public void close()
public JmsServerSession getSession(java.lang.String sessionId)
sessionId - The id of the required session.public java.lang.String getClientId()
public java.lang.String getConnectionId()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||