|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Channel Exit programme for Message priority |
« View previous topic :: View next topic » |
Author |
Message
|
abiram8 |
Posted: Thu Feb 12, 2004 12:54 am Post subject: Channel Exit programme for Message priority |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi,
We have a critical requirment where the message will be assigned a priority while passing through the channel
I have seen few exit progrmme which queries to the queue properties etc.,
and channel properties etc.,
but I donot know If I can write a exit which changes the priority of message passing thro the channel.
Or does the exit prog have some limitations doing so ....
Looking for your valuable inputs
Abiram |
|
Back to top |
|
 |
mq_developer |
Posted: Thu Feb 12, 2004 5:58 pm Post subject: |
|
|
Voyager
Joined: 18 Feb 2002 Posts: 82
|
First of all it can be done and it is supported ...
For channel exit Here is what i would recommend
1) Write a message exit
2) Channel exit programs receives the exitdata when called and also there is a field called HeaderLength under the MQCXP structure ( this is one another parmeter passed to the exit) .
3) Now extract the header length of bytes from the beginning of the message and parse the headers of the message based on the eye catcher that everyheader has . By default since its a message to be delivered to the outside world , it will start with XQH (XMIT header) . Now identify the location of the MQMD in the header , make necessary changes to the fields that you need.
4) since you would be making changes to MQMD , ensure that headerlength doesnt get changed and make sure that its well formed as before .
But one another thought , why dont you use this , for the XMITQ that is used by the channel set the DEFPRIORITY to whatever value ... but this is going to assign all your messages same priority ( what use huh !!! ) ... but it saves lot of time and code ....
otherwise route your messages into multiple XMITQ based on the priority for multiple priority .. this would result in lot of channels .... |
|
Back to top |
|
 |
abiram8 |
Posted: Thu Feb 12, 2004 8:44 pm Post subject: |
|
|
 Master
Joined: 27 Mar 2002 Posts: 207 Location: India
|
Hi mq_developer,
Thanks for Ur Inputs
Do U have any link available for such prog provided by IBM or any third party which would help me.
Thanks,
Abiram |
|
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
|
|
|
|