QueueConnection (Eclipse OpenMQ (tm), 5.1 API Specification)
Description: declaration: package: com.sun.messaging.jms, interface: QueueConnection

Package com.sun.messaging.jms

# Interface QueueConnection

All Superinterfaces:
  `AutoCloseable`, `jakarta.jms.Connection`, `jakarta.jms.QueueConnection`

public interface QueueConnection extends jakarta.jms.QueueConnection
Provide interface to create a MQ NO_ACKNOWLEDGE queue session.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `jakarta.jms.QueueSession`
  `createQueueSession(int acknowledgeMode)`
  Creates a `QueueSession` object.

  ### Methods inherited from interface jakarta.jms.Connection

  `close, createConnectionConsumer, createDurableConnectionConsumer, createSession, createSession, createSession, createSharedConnectionConsumer, createSharedDurableConnectionConsumer, getClientID, getExceptionListener, getMetaData, setClientID, setExceptionListener, start, stop`

  ### Methods inherited from interface jakarta.jms.QueueConnection

  `createConnectionConsumer, createQueueSession`

- ## Method Details

  - ### createQueueSession

    jakarta.jms.QueueSession createQueueSession(int acknowledgeMode) throws jakarta.jms.JMSException
    Creates a `QueueSession` object.
    Parameters:
      `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`
    Returns:
      a newly created session
    Throws:
      `jakarta.jms.JMSException` - if the `QueueConnection` object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.
    See Also:
      - `Session.AUTO_ACKNOWLEDGE`
      - `Session.CLIENT_ACKNOWLEDGE`
      - `Session.DUPS_OK_ACKNOWLEDGE`
      - `Session.NO_ACKNOWLEDGE`