49.3. Methods

The TopicConnection interface inherits the fields and the methods of the interface javax.jms.Connection. The following method is defined in the interface javax.jms.TopicConnection.

createTopicSession

public TopicSession createTopicSession(boolean transacted,
                                                 int acknowledgeMode)

Creates a TopicSession object.

The acknowledgeMode parameter is ignored if the session is transacted. Legal values are Session.AUTO_ACKNOWLEDGE, Session.CLIENT_ACKNOWLEDGE, and Session.DUPS_OK_ACKNOWLEDGE.

PARAMETERS:

transacted indicates whether the session is transacted
acknowledgeModeindicates 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 ...

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.