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 » Changing queue and queue manager in message exit

Post new topic  Reply to topic
 Changing queue and queue manager in message exit « View previous topic :: View next topic » 
Author Message
ssq
PostPosted: Tue Apr 30, 2002 9:27 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2002
Posts: 3

I would like to change the destination queue and queue manager in a message exit. The queue can be changed OK, but not the queue manager.

If I cannot change the queue manager can I push the message back to the originating queue manager (where the exit program sits) - to another queue but the DLQ?

My preferred language is C, on Unix and Win32.
Back to top
View user's profile Send private message Send e-mail
kolban
PostPosted: Tue Apr 30, 2002 9:30 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2001
Posts: 1072
Location: Fort Worth, TX, USA

I believe that the message exit is invoked just prior to transmission over the network. Since the queue manager has a one to one relationship with the network connection (IP and port), it doesn't surprise me that you can't change the destination queue manager. If this is something that you might want to do dynamically, consider using clustering. If the target queues are on multiple queue managers, a cluster exit can be invoked to dynamically select the destination queue manager from amongst the options available.
Back to top
View user's profile Send private message
ssq
PostPosted: Tue Apr 30, 2002 9:33 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2002
Posts: 3

Yes, this is something I suspected.

However, using as a response MQXX_SUPPRESS_FUNCTION (or very similar to that) I can stop the message from going forward; instead it will go to the DLQ. Can I somehow redirect it to a queue of my own choosing?
Back to top
View user's profile Send private message Send e-mail
StefanSievert
PostPosted: Tue Apr 30, 2002 10:09 am    Post subject: Reply with quote

Partisan

Joined: 28 Oct 2001
Posts: 333
Location: San Francisco

Hmmm, why would you not be able to change the destination queue manager? I agree that the channel points to a very specific queue manager, but that queue manager doesn't necessarily have to be the final destination of the message, if you think hub and spoke or multi-hopping. And the name resolution is performed by the receiving MCA, isn't it!? Am I missing something?
My 2 cents...
Stefan

_________________
Stefan Sievert
IBM Certified * WebSphere MQ
Back to top
View user's profile Send private message
ssq
PostPosted: Wed May 01, 2002 9:25 am    Post subject: Reply with quote

Newbie

Joined: 29 Apr 2002
Posts: 3

You are not missing anything.

Unfortunately, I do not have any control over the destination system - it is at a customer, and I am just sending stuff there. I want to be able to (in my channel message program) change the queue and queue manager in the case of problems I have detected in the contents of the message. I do not want them to go to the customer at all, but either to my own queue manager (the sender) or to one I have control over.
Back to top
View user's profile Send private message Send e-mail
mrlinux
PostPosted: Wed May 01, 2002 9:59 am    Post subject: Reply with quote

Grand Master

Joined: 14 Feb 2002
Posts: 1261
Location: Detroit,MI USA

Well if that is what you want to do then you need to take the message and place
it in a different queue, because the transmit queue you pulled it off is only going to the place that is defined in the connmae of the channel that is using that XMITQ

_________________
Jeff

IBM Certified Developer MQSeries
IBM Certified Specialist MQSeries
IBM Certified Solutions Expert MQSeries
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Changing queue and queue manager in message exit
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.