posted 12 years ago
This is seemingly an elementary question.
If we create a MQ or JMS queue connection - does it need synchronization for multiple threads to be able to send message to it?
MQEnvironment.hostname = hostname;
MQEnvironment.channel = channel;
MQEnvironment.port = portNumber;
qMgr = new MQQueueManager(qManager);
openOptions = MQC.MQOO_INPUT_AS_Q_DEF | MQC.MQOO_OUTPUT;
Queue = qMgr.accessQueue(outQueue,openOptions, null, null, null);
Can this 'Queue' handle be passed over to multiple threads to send over messages without synchronization?
If not, why?
Answers with proper justifications will be really appreciated.