|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to use ReplyToQmgr |
« View previous topic :: View next topic » |
Author |
Message
|
bkissinger |
Posted: Wed Sep 29, 2004 5:55 am Post subject: How to use ReplyToQmgr |
|
|
Newbie
Joined: 10 Mar 2004 Posts: 6
|
Hello all,
we want to send a Reply to a Qmgr that resides in a cluster and therefore have to use the field ReplyToQmgr from the Request.
Without paying Respect to that field, our application (C#) was constructing a QueueManager object and accessing a queue once (qmgr.AccessQueue) once at program start (Batch processing). After that it was receiveing a bunch of requests and sending the corresponding replies ( by calling put on the queue object).
But now, we have to pay respect to the "ReplyToQmgr". And as far as I know this can be done in two ways:
1) When Accessing the queue: MQQueue.AccessQueue (queue, qmgr...)
2) By calling "put" on the QueueManager Object (Equal to MQPUT1)
Since 2 would be bad for performance, I think we have to use 1.
But this would imply, that I have to call "Qmgr.AccessQueue" before the put of every message, because the ReplyToQmgr can change.
And this would be equal to solution 1 (MQPUT1). So we would have a loss of performance.
Or is there another way of replying to a specific qmgr without loosing performance? |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Sep 29, 2004 8:46 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Nope. You are understanding it correctly. if you have to send the next message to a queue that is on another QM, and thus is not open, you gotta open it.
I suppose you could keep an array of open queues, and keep adding to it as new Reply2QMs show up.
Test first though. Maybe the performance hit you are worried about is so small in real terms, its not worth worrying about. _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|