com.ibm.mqe.jms
Class MQeQueueConnection
java.lang.Object
|
+--com.ibm.mqe.jms.MQeConnection
|
+--com.ibm.mqe.jms.MQeQueueConnection
- All Implemented Interfaces:
- javax.jms.Connection, javax.jms.QueueConnection
- public class MQeQueueConnection
- extends MQeConnection
- implements javax.jms.QueueConnection
A QueueConnection
is an active connection to a JMS Point-to-Point
provider. A client uses a QueueConnection to create one or more QueueSessions
for producing and consuming messages.
A QueueConnection
can be used to create a
QueueSession
, from which specialized queue-related objects
can be created. A more general, and recommended, approach is to use the
Connection
object. The QueueConnection
object
should be used to support existing code that has already used it.
A QueueConnection
cannot be used to create objects
specific to the publish/subscribe domain.
- See Also:
Connection
,
ConnectionFactory
,
QueueConnectionFactory
Method Summary |
javax.jms.QueueSession |
createQueueSession(boolean transacted,
int acknowledgeMode)
Creates a QueueSession object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.jms.QueueConnection |
createConnectionConsumer |
Methods inherited from interface javax.jms.Connection |
close, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop |
MQeQueueConnection
public MQeQueueConnection()
createQueueSession
public javax.jms.QueueSession createQueueSession(boolean transacted,
int acknowledgeMode)
throws javax.jms.JMSException
- Creates a
QueueSession
object.
- Specified by:
createQueueSession
in interface javax.jms.QueueConnection
- Parameters:
transacted
- indicates whether the session is transactedacknowledgeMode
- indicates whether the consumer or the
client will acknowledge any messages it receives; ignored if the session
is transacted. Legal values are Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
, and
Session.DUPS_OK_ACKNOWLEDGE
.
- Returns:
- a newly created queue session
- Throws:
javax.jms.JMSException
- if the QueueConnection
object fails
to create a session due to some internal error- See Also:
Session.AUTO_ACKNOWLEDGE
,
Session.CLIENT_ACKNOWLEDGE
,
Session.DUPS_OK_ACKNOWLEDGE