|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcgl.narada.jms.JmsConnection
public class JmsConnection
This class implements the JMS connection.
| Constructor Summary | |
|---|---|
JmsConnection()
|
|
| Method Summary | |
|---|---|
void |
addToListOfManagedSessions(JmsSession session)
|
void |
close()
Closes the connection. |
String |
getClientID()
Gets the client identifier for this connection. |
ExceptionListener |
getExceptionListener()
Gets the ExceptionListener object for this connection. |
ConnectionMetaData |
getMetaData()
Gets the metadata for this connection. |
void |
notifyExceptionListener(JMSException exception)
If there is a registered exception listener, this method notifies the exception listener if there are any exceptions that take place. |
void |
setClientID(String clientID)
Sets the client identifier for this connection. |
void |
setExceptionListener(ExceptionListener listener)
Sets an exception listener for this connection. |
void |
start()
Starts (or restarts) a connection's delivery of incoming messages. |
void |
stop()
Temporarily stops a connection's delivery of incoming messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JmsConnection()
| Method Detail |
|---|
public String getClientID()
throws JMSException
getClientID in interface ConnectionJMSException - if the JMS provider fails to return
the client ID for this connection due to some internal error.
public void setClientID(String clientID)
throws JMSException
setClientID in interface ConnectionclientID - the unique client identifier
JMSException - if the JMS provider fails to set the client ID
for this connection due to some internal error.
InvalidClientIDException - if the JMS client specifies an
invalid or duplicate client ID.
IllegalStateException - if the JMS client attempts to
set a connection's client ID at the wrong time or when it has been
administratively configured.
public ConnectionMetaData getMetaData()
throws JMSException
getMetaData in interface ConnectionJMSException - if the JMS provider fails to get the
connection metadata for this connection.ConnectionMetaData
public ExceptionListener getExceptionListener()
throws JMSException
ExceptionListener object for this connection.
getExceptionListener in interface ConnectionExceptionListener for this connection
JMSException - if the JMS provider fails to get the
ExceptionListener for this connection.
public void setExceptionListener(ExceptionListener listener)
throws JMSException
setExceptionListener in interface Connectionlistener - the exception listener
JMSException - if the JMS provider fails to set the exception
listener for this connection.public void notifyExceptionListener(JMSException exception)
exception - The exception that has occured.
public void start()
throws JMSException
start on a connection that has already been
started is ignored.
start in interface ConnectionJMSException - if the JMS provider fails to start
message delivery due to some internal error.Connection.stop()
public void stop()
throws JMSException
start
method. When the connection is stopped, delivery to all the connection's
message consumers is inhibited: synchronous receives block, and messages
are not delivered to message listeners.
stop in interface ConnectionJMSException - if the JMS provider fails to stop message
delivery due to some internal error.Connection.start()
public void close()
throws JMSException
close in interface ConnectionJMSException - if the JMS provider fails to close the
connection due to some internal error. For example, a failure to release
resources or to close a socket connection can cause this exception to
be thrown.public void addToListOfManagedSessions(JmsSession session)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||