|
Message Queue, v4.4 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Connection
This interafce provides the following API for the MQ applications:
1. Provide API to create a MQ NO_ACKNOWLEDGE session.
2. Provide API to set the connection event listener.
3. Provide API to query broker adress and HA state.
Method Summary | |
---|---|
Session |
createSession(int acknowledgeMode)
Creates a Session object. |
java.lang.String |
getBrokerAddress()
Get the broker's address that the connection is connected (related) to. |
boolean |
isConnectedToHABroker()
Get the current connection state. |
void |
setEventListener(EventListener listener)
Set MQ connection event listener to the current connection. |
Methods inherited from interface javax.jms.Connection |
---|
close, createConnectionConsumer, createDurableConnectionConsumer, createSession, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
Method Detail |
---|
Session createSession(int acknowledgeMode) throws JMSException
Session
object.
acknowledgeMode
- indicates whether the consumer or the
client will acknowledge any messages it receives;
Legal values are Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
, and
com.sun.messaging.jms.Session.NO_ACKNOWLEDGE
JMSException
- if the Connection
object fails
to create a session due to some internal error or
lack of support for the specific transaction
and acknowledgement mode.
JMSException
Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE
,
Session.NO_ACKNOWLEDGE
void setEventListener(EventListener listener) throws JMSException
listener
- EventListener
JMSException
JMSException
java.lang.String getBrokerAddress()
boolean isConnectedToHABroker()
|
Message Queue, v4.4 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |