In to create session object from ConnectionFactory for JMS implementation we have method called createSession() with two parameters.
In documentation the following details is given :
public Session createSession(boolean transacted,
throws JMSExceptionCreates a Session object.
transacted - indicates whether the session is transacted
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.
So kindly help me in understanding regarding these two method parameters - boolean transacted and int acknowledgeMode.
For first parameter i.e. boolean transacted , my understanding is ,
The first parameter of the method specifies whether the session is transactional.
This means that the requests for messages to be sent won’t be
realized until either the session’s commit method is called or the session is closed.
(If the session isn’t transactional, messages will be sent as soon as the send method
Is my understanding ok.
Will you please help me in understanding second parameter i.e. int acknowledgeMode
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: create session object from ConnectionFactory