Author |
Message
|
ssq |
Posted: Tue Apr 30, 2002 9:27 am Post subject: |
|
|
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 |
|
 |
kolban |
Posted: Tue Apr 30, 2002 9:30 am Post subject: |
|
|
 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 |
|
 |
ssq |
Posted: Tue Apr 30, 2002 9:33 am Post subject: |
|
|
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 |
|
 |
StefanSievert |
Posted: Tue Apr 30, 2002 10:09 am Post subject: |
|
|
 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 |
|
 |
ssq |
Posted: Wed May 01, 2002 9:25 am Post subject: |
|
|
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 |
|
 |
mrlinux |
Posted: Wed May 01, 2002 9:59 am Post subject: |
|
|
 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 |
|
 |
|