Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

synchonous mode

Status
Not open for further replies.

thejulian

Technical User
Dec 10, 2002
2
FR
Hello,

Applications generaly use the asynchronous mode to post messages in MQSeries.
Do you know if the synchonous mode exists in MQSeries?

thanX,

---julian---
 
Use the request/reply channels to create the same effect.
 
I'm afraid i don't understand.

I've got 2 applications and i would like to use MQSeries to communicate in synchronous mode.

For the moment, it works like this:
The application A post a message in the Queue A
The queue A send the message in the channel
The application B receive the message via the queue B

I would like that the application A stops all traitement and waiting for a response (ACK) of application B before send another message.

Is it possible with MQ?

thanX,

---julian---

 
Julian

It is if you code a MQGET with a wait option on the reply to queue but you will have to have some way of signalling that the application is complete if the two applications are on the same system it may not be considered to be much of an issue, but if it is on another system...watch out. You will need to code for the chance that application "B" is unavailable otherwise you could wait for a reply for a heck of a long time.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top