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 Java / JMS » MQManagedObject.inquire(int selectors,intattrs,charattrs)

Post new topic  Reply to topic
 MQManagedObject.inquire(int selectors,intattrs,charattrs) « View previous topic :: View next topic » 
Author Message
pazhanikumart
PostPosted: Wed Aug 22, 2001 9:52 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
bduncan
PostPosted: Thu Aug 23, 2001 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
pazhanikumart
PostPosted: Fri Aug 24, 2001 3:54 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
bduncan
PostPosted: Fri Aug 24, 2001 10:10 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MQManagedObject.inquire(int selectors,intattrs,charattrs)
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.