WebLogic Messaging API Class Library

IConnection. Method 

Creates a ISession object.

ISession (
   Boolean transacted,
   Constants.SessionMode acknowledgeMode
);

Parameters

Boolean
indicates whether the session is transacted
Constants.SessionMode
indicates whether the consumer or the client will Acknowledge any messages it receives; ignored if the session is transacted. Legal values are Constants.SessionMode.AUTO_ACKNOWLEDGE, Constants.SessionMode.CLIENT_ACKNOWLEDGE, and Constants.SessionMode.DUPS_OK_ACKNOWLEDGE.

Return Value

a newly created session

Exceptions

Exception Type Condition
MessageException if the IConnection object fails to create a session due to some internal error or lack of support for the specific transaction and acknowledgement mode.

See Also

IConnection Interface | WebLogic.Messaging Namespace | AUTO_ACKNOWLEDGE | CLIENT_ACKNOWLEDGE | DUPS_OK_ACKNOWLEDGE