ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » How to use ReplyToQmgr

Post new topic  Reply to topic
 How to use ReplyToQmgr « View previous topic :: View next topic » 
Author Message
bkissinger
PostPosted: Wed Sep 29, 2004 5:55 am    Post subject: How to use ReplyToQmgr Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Wed Sep 29, 2004 8:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » How to use ReplyToQmgr
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.