Collapse All Expand All

.NET Framework Class Library
TopicConnection Class See Also

[TIBCO.EMS .NET client library 5.1 documentation]

Creates a TopicSession object.

Namespace: TIBCO.EMS
Assembly: TIBCO.EMS (in TIBCO.EMS.dll)

# Syntax

    public virtual TopicSession CreateTopicSession(
    	bool transacted,
    	int acknowledgeMode
    )

    Public Overridable Function CreateTopicSession ( _
    	transacted As Boolean, _
    	acknowledgeMode As Integer _
    ) As TopicSession

    public:
    virtual TopicSession^ CreateTopicSession(
    	bool transacted,
    	int acknowledgeMode
    )

#### Parameters

transacted
  Type: System..::.Boolean

  Indicates whether the session is transacted.

  When true, the new session has transaction semantics.

  When false, it has non-transaction semantics.

acknowledgeMode
  Type: System..::.Int32

  Indicates whether and how the consumer is to acknowledge received messages.

  This version of CreateTopicSession accepts an integer value associated with the acknowledge mode described by a Session member and should only be used for backward compatibility.

  This parameter is ignored if the session is transacted.

#### Return Value

A newly created topic session

# Remarks

Note: This method is provided for backward compatibility to support older EMS clients programs.
The new topic session uses the connection for all server communications.

# See Also

TopicConnection Class
CreateTopicSession Overload
TIBCO.EMS Namespace