Creates a Session object.

Namespace:  Kaazing.JMS
Assembly:  Kaazing.JMS (in Kaazing.JMS.dll)

Syntax

Visual Basic
Function CreateSession ( _
	transacted As Boolean, _
	acknowledgeMode As Integer _
) As ISession
C#
ISession CreateSession(
	bool transacted,
	int acknowledgeMode
)
Visual C++
ISession^ CreateSession(
	bool transacted, 
	int acknowledgeMode
)

Parameters

transacted
Type: System..::..Boolean
indicates whether the session is transacted
acknowledgeMode
Type: System..::..Int32
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, and Session.DUPS_OK_ACKNOWLEDGE.

Return Value

a newly created session

Exceptions

ExceptionCondition
Kaazing.JMS..::..JMSExceptionif the Connection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.

See Also