KMXATopicConnection Class Reference
Inherits from | KMTopicConnection : KMConnection : KCObject : NSObject |
Declared in | KMXATopicConnection.h |
Instance Methods
createTopicSession:transacted:
Creates a TopicSession object.
- (KMTopicSession *)createTopicSession:(int)acknowledgeMode transacted:(BOOL)transacted
Parameters
- acknowledgeMode
indicates whether the consumer or the client will acknowledge any messages it receives; ignored if the session is transacted. Legal values are KMSessionAutoAcknowledge, KMSessionClientAcknowledge, and KMSessionDupsOKAcknowledge.
- transacted
indicates whether the session is transacted
Return Value
a newly created topic session
Exceptions
- KMJMSException
if the TopicConnection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.
See Also
Declared In
KMTopicConnection.h