OPTIMISTICPUBLICATION
This property determines whether IBM MQ classes for JMS returns control immediately to a publisher that has published a message, or whether it returns control only after it has completed all the processing associated with the call and can report the outcome to the publisher.
Applicable Objects
ConnectionFactory, TopicConnectionFactory
JMS administration tool long name: OPTIMISTICPUBLICATION
JMS administration tool short name: OPTPUB
Programmatic access
Setters/getters
- MQConnectionFactory.setOptimisticPublication()
- MQConnectionFactory.getOptimisticPublication()
Values
- NO
- When a publisher publishes a message, IBM MQ classes for JMS do not return control to the publisher until it has completed all the processing associated with the call and can report the outcome to the publisher. This is the default value.
- YES
- When a publisher publishes a message, IBM MQ classes for JMS returns control to the publisher immediately, before it has completed all the processing associated with the call and can report the outcome to the publisher. IBM MQ classes for JMS reports the outcome only when the publisher commits the message.
Parent topic: Properties of IBM MQ classes for JMS objects