THREAD_AFFINITY_PROPERTY

 

public final static java.lang.String

WebSphere MQ Java™ environment key for defining thread affinity. The corresponding value must be a Boolean. Thread affinity is disabled by default and connections can be shared. If it is enabled, then each queue manager connection will be bound to a worker thread.

Two-phase commit processing is not supported with shared connections, and so XA coordination is only possible when the MQQueueManager is created with THREAD_AFFINITY set to true. If it is not, MQQueueManager.begin() will fail with MQRC 2121, MQRC_NO_EXTERNAL_PARTICIPANTS.


uj21250_