When you add an MQRecord, the record is placed at the end of the
queue. This placement occurs because the add statement
invokes one or more WebSphere® MQ
commands:
- MQCONN connects the generated code to the default queue manager
and is invoked when no connection is active.
- MQOPEN establishes a connection to the queue and is invoked when
a connection is active but the queue is not open.
- MQPUT puts the record in the queue and is always invoked unless
an error occurred in an earlier WebSphere MQ
command.