createTopicSession
public TopicSession createTopicSession(boolean transacted, int acknowledgeMode) throws JMSException;
Creates a TopicSession object.
- Parameters
- transacted - if true, throws a JMSException on a direct connection to a broker.
- 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.
- Returns
- session - a newly created topic session
- Exceptions
- JMSException - if the MQTopicConnection failed to create a session due to an internal error or if a transacted session was requested when using a direct connection to a broker.
uj30570_