|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jms.server.JmsServerConnection
A connection is created for every client connecting to the JmsServer. A connection supports multiple sessions.
JmsServerConnectionManager
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 |
getConnectionId()
Retrieve the identity of this conection. |
java.lang.String |
getID()
Returns the client identifier |
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 java.lang.String getID()
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 deletepublic 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 getConnectionId()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |