Session
object.
@param transacted indicates whether the session is transacted
@param acknowledgeMode 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 a newly created session
@throws JMSException if 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 Session#AUTO_ACKNOWLEDGE
@see Session#CLIENT_ACKNOWLEDGE
@see Session#DUPS_OK_ACKNOWLEDGE
@since 1.1
|
|
|
|
|
|