I have rc rc 2219 code, we have 2 threads for program design. One for receiving messages and one for posting / sending messages to the queue. Thus, we got two processes at the same time.
Here the flow of get thread:
* connect to the queue manager
* set link to connection / listener
* set the parameter for receiving a message (wait indefinitely)
* open the queue
* receive a message from the queue
Here the flow of put thread:
* connect to the queue manager
* set link to connection / listener
* set put message option
* open the queue
* put a message in the queue
get
- will connect to the queue manager, open the queue and has a cycle for receiving messages for an indefinite period. (the wait interval is set to unlimited, mqgmo_wait).
put
- connect to one queue manager, open a queue and send messages to another queue. We received an error when opening the queue with code rc 2219.
- , rc?