|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
jrun.jms.core.client.JmsConnection
The JmsConnection is a client representation of a server side connection. It establishes a connection to the remote JMS server without allocating remote resources. Since the remote connection is stateless it is shared by JmsConnection objects in the same VM..
| Field Summary | |
protected boolean |
_idLocked
kint: This flag indicates whether the client is still allowed to change the client ID or if other operations have already been called on the connection which disallow changing the client ID. |
| Method Summary | |
protected void |
addSession(JmsSession session)
Add the specified session to the list of managed sessions |
java.lang.String |
assembleClientSpecificSubscriptionName(java.lang.String name)
|
void |
close()
|
void |
destroy()
Release all resources sued by this connection, including supporting sessions |
java.lang.String |
getClientID()
|
java.lang.String |
getConnectionId()
Return the identity of this connection. |
javax.jms.ExceptionListener |
getExceptionListener()
|
protected Logger |
getLogger()
Return a reference to the logger. |
javax.jms.ConnectionMetaData |
getMetaData()
|
protected java.util.Enumeration |
getSessions()
Return an enumeration of all sessions managed bythis connection |
boolean |
idIsUserSupplied()
|
protected boolean |
isClosed()
Return the overall state of the connection |
protected boolean |
isManaged(JmsSession session)
Test whether the specified session is managed by this connection |
protected boolean |
isStopped()
Return the running state of the connection |
void |
notifyExceptionListener(javax.jms.JMSException message)
Notify the exception listener of a JMSException. |
protected void |
removeSession(JmsSession session)
Remove the specified session from the list of managed sessions. |
void |
setClientID(java.lang.String id)
|
void |
setExceptionListener(javax.jms.ExceptionListener listener)
|
void |
start()
|
void |
stop()
|
| Field Detail |
protected boolean _idLocked
| Method Detail |
public java.lang.String getClientID()
throws javax.jms.JMSException
public void setClientID(java.lang.String id)
throws javax.jms.JMSException
public javax.jms.ConnectionMetaData getMetaData()
throws javax.jms.JMSException
public javax.jms.ExceptionListener getExceptionListener()
throws javax.jms.JMSException
public void setExceptionListener(javax.jms.ExceptionListener listener)
throws javax.jms.JMSException
public void notifyExceptionListener(javax.jms.JMSException message)
message - message to deliver
public void start()
throws javax.jms.JMSException
public void stop()
throws javax.jms.JMSException
public void close()
throws javax.jms.JMSException
public void destroy()
throws javax.jms.JMSException
JMSException - - error completing this requestpublic java.lang.String getConnectionId()
protected void addSession(JmsSession session)
session - session to registerprotected void removeSession(JmsSession session)
session - session to removeprotected boolean isManaged(JmsSession session)
session - session to test againstprotected java.util.Enumeration getSessions()
protected Logger getLogger()
protected boolean isStopped()
protected boolean isClosed()
public boolean idIsUserSupplied()
public java.lang.String assembleClientSpecificSubscriptionName(java.lang.String name)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||