36.3. Methods

The QueueConnection interface inherits the methods of the interface javax.jms.Connection. The following method is defined in the interface javax.jms.QueueConnection.

createQueueSession

public QueueSession createQueueSession(boolean transacted,
                                                 int acknowledgeMode)

Creates a QueueSession object.

PARAMETERS:

transacted indicates whether the session is transacted
acknowledgeMode 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
Session.DUPS_OK_ACKNOWLEDGE

RETURNS:

a newly created queue session

THROWS:

JMSException if the QueueConnection object fails to create a session due to some internal ...

Get Java™ Message Service API Tutorial and Reference: Messaging for the J2EE™ Platform now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.