|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQManagedObject.inquire(int selectors,intattrs,charattrs) |
« View previous topic :: View next topic » |
Author |
Message
|
pazhanikumart |
Posted: Wed Aug 22, 2001 9:52 pm Post subject: |
|
|
Apprentice
Joined: 12 Aug 2001 Posts: 32 Location: Chennai,India
|
Hai all
Can anyone explain how to set queue attributes and get?
How should we specify in the inquire method if we want to inquire a queue for messages with a header set to 'abc' ?
_________________ In the end everything is Right ,If it's not then it's not the end |
|
Back to top |
|
 |
bduncan |
Posted: Thu Aug 23, 2001 4:24 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Pazhanikumart,
When you say "How should we specify in the inquire method if we want to inquire a queue for messages with a header set to 'abc' ?" what exactly do you mean by "header"? The MQSeries message header (known as MQMD) contains many fields. The user can match against many of these fields when issuing an MQGET, but not all. Keep in mind that the header is different from the data of the message itself. There is no way to match against the content of a message. In other words if I have an MQ message that reads "Hello World", there is no way I can look through the queue for a message containing that phrase. However, if I set one of the fields in the message header, like CorrelId, to "Hello World", then on my MQGET, I can instruct it to look for any messages whose CorrelId is set to "Hello World".
If you need more information on this subject, be sure to look at the MQSeries manuals:
http://www.ibm.com/software/ts/mqseries/library
and you can always post additional questions here...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
pazhanikumart |
Posted: Fri Aug 24, 2001 3:54 am Post subject: |
|
|
Apprentice
Joined: 12 Aug 2001 Posts: 32 Location: Chennai,India
|
Thanks bduncan.I still have a doubt.If a non JMS Client sets an MQMD Property ,Will it get mapped to the appropriate JMS Property?
For example ,A non JMS client sends a message with a MQMD Property set to some value,Is it possible for a JMS Client to poll the queue for the particular criteria set by the Message Producer?
_________________
In the end everything is Right ,If it's not then it's not the end
[ This Message was edited by: pazhanikumart on 2001-08-24 05:00 ] |
|
Back to top |
|
 |
bduncan |
Posted: Fri Aug 24, 2001 10:10 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
pazhanikumart,
The JMS interface has access to all fields in the MQMD header. You simply need to use the appropriate functions to extract them, regardless of whether or not a JMS client created the message...
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
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
|
|
|
|