SHARECONVALLOWED

For applications that use IBM® MQ messaging provider normal mode or normal mode with restrictions, this property determines whether the sharing conversations function is used for JMS connections, sessions, and contexts created from the connection factory.

Applicable Objects

ConnectionFactory, QueueConnectionFactory, TopicConnectionFactory, XAConnectionFactory, XAQueueConnectionFactory, XATopicConnectionFactory

JMS administration tool long name: SHARECONVALLOWED

JMS administration tool short name: SCALD

Programmatic access

Setters/getters

  • MQConnectionFactory.setShareConvAllowed()
  • MQConnectionFactory.getShareConvAllowed()

Values

YES
JMS connections, sessions, and contexts that are created from the connection factory within the same JVM can share a channel instance (which maps to a TCP/IP connection) where appropriate.
This is the default value for administrative tools.
For programs, use WMQConstants.WMQ_SHARE_CONV_ALLOWED_YES.
NO
Every JMS connection created from the connection factory, and every JMS session that is created from those JMSconnections, has its own channel instance (TCP/IP connection) to a queue manager.
For JMS contexts, the first context that is created from the connection factory creates two channel instances (TCP/IP connections). Other JMS contexts that are created from the first one have their own channel instance (TCP/IP connection).
For programs, use WMQConstants.WMQ_SHARE_CONV_ALLOWED_NO.