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 » Channel Exit programme for Message priority

Post new topic  Reply to topic
 Channel Exit programme for Message priority « View previous topic :: View next topic » 
Author Message
abiram8
PostPosted: Thu Feb 12, 2004 12:54 am    Post subject: Channel Exit programme for Message priority Reply with quote

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
View user's profile Send private message Send e-mail
mq_developer
PostPosted: Thu Feb 12, 2004 5:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
abiram8
PostPosted: Thu Feb 12, 2004 8:44 pm    Post subject: Reply with quote

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
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 » Channel Exit programme for Message priority
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.