Author |
Message
|
Prashant_MQ |
Posted: Tue Mar 21, 2006 11:27 pm Post subject: MQGET with wait option |
|
|
Apprentice
Joined: 07 Feb 2006 Posts: 28
|
Hi All,
Scenario is:
CLIENT puts the message on the SERVER and down the line does a MQGET with wait option.
Does it mean CLIENT stays connected to SERVER.
Does this mean this is synchronous communication.
Does CLIENT poll for the message on the queue whilst it waits.
Thanks
prashant |
|
Back to top |
|
 |
Mr Butcher |
Posted: Tue Mar 21, 2006 11:31 pm Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
yes
yes, client-server is always synchronous
no, it will wait and will be posted by the server when a message is available or when the waittime has expired (rc=2033)
you may want to check for client triggering if this is an option for you.... _________________ Regards, Butcher |
|
Back to top |
|
 |
Prashant_MQ |
Posted: Tue Mar 21, 2006 11:59 pm Post subject: |
|
|
Apprentice
Joined: 07 Feb 2006 Posts: 28
|
Thanks Butcher.
One more question.
Dont you think implmenting CLIENT-SERVER model is not a recommended design.Because the whole purpose of Message queueing is defeated,since I have always been under the impression that MQ is predominantly popular for its distinct advantage being a async communication.
Or is it that there are some business reasons which force this implementation.If so,can you please enlighten me with few examples.
Thanks
Prashant |
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Mar 22, 2006 12:02 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
it depends what you want to archieve. i can not explain all possible business solutions here and explain if it is best to use server-server or client-server.
why dont you explain your business needs and how you plan to set it up, then we can give you some comments...... _________________ Regards, Butcher |
|
Back to top |
|
 |
Prashant_MQ |
Posted: Wed Mar 22, 2006 12:13 am Post subject: |
|
|
Apprentice
Joined: 07 Feb 2006 Posts: 28
|
unfortunately the only reason that we have got is that the CLIENT-SERVER model does not require any MQ servicing program to be installed on CLIENT machine thereby reducing the cost.Also that CLIENT-SERVER model is effective when there are not more than 50 clients connected to SERVER at any point in time.Also note that the transactions in question are "enquiry" type transactions.Does this make any difference.
Thanks
Prashant |
|
Back to top |
|
 |
Nigelg |
Posted: Wed Mar 22, 2006 12:47 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
You should be able to connect hundreds or possibly thousands of clients to a (v5.3+) qmgr. _________________ MQSeries.net helps those who help themselves.. |
|
Back to top |
|
 |
|