.net - How to get only Websphere MQ messages with a particular priority in C#? -
i'm developing application in c# using ibm websphere mq api (v7.5) main goal getting messages queue , store them in database. well, know , browse messages. must process messages differently according priority.
is there "simple" way messages given priority ?
i don't want use dirty trick browsing through messages, storing id of messages i'm interested in, , getting them 1 one. read in mq documentation can use selector string browse through particular messages using sql syntax, don't find how in c#.
thanks lot !
as of in mq .net, can use mqc.mqmo_match_msg_id
, mqc.mqmo_match_correl_id
match options messages match message id or correlation id. getting messages matching priority
not available.
alternatively switch using xms .net
that allows consumers created sql92 style selection string. example can create consumer selection string "jmspriority > 3 , manufacturer = 'jaguar'"
receive messages have jmspriority
of 3 , manufacturer
name jaguar.
Comments
Post a Comment