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 » Message Filtering

Post new topic  Reply to topic
 Message Filtering « View previous topic :: View next topic » 
Author Message
sivadharsan
PostPosted: Sat Feb 15, 2003 9:09 pm    Post subject: Message Filtering Reply with quote

Newbie

Joined: 14 Jan 2003
Posts: 7

Hi,
How can I implement message filtering in MQSeries. Currently we are able to filter using one value..but how do I handle a range of values.
Message filtering should be done on the compound of all the values. For example, a user can chose to only get messages that the message type is 4, 8, 200-250, and the priority is 5, 6, 10-20, and put date is 20030214, 20030210, and originating user id is abc, def etc..


Regards
Sivadharsan.
Back to top
View user's profile Send private message
mgrabinski
PostPosted: Wed Feb 19, 2003 11:06 pm    Post subject: Reply with quote

Master

Joined: 16 Oct 2001
Posts: 246
Location: Katowice, Poland

You can filter messages basing only on MsgId and/or CorrelId. To get around this, you'd have to first browse messages, save their MsgId/CorrelId and then get the suiting messages from the queue
_________________
Marcin Grabinski <><
Back to top
View user's profile Send private message
yaakovd
PostPosted: Thu Feb 20, 2003 6:42 am    Post subject: Reply with quote

Partisan

Joined: 20 Jan 2003
Posts: 319
Location: Israel

Hi Siva
I just want to put to forum message, what I send you.

I think that there is no way of direct filtering by few parameters at same time (except msg id, correl id and group id).
I understand that you "query" will be created dynamically and based on user request.

1. Create class A which represents all needed message parameters:
corellationID; messageID; priority; originatingUser etc.

2. Create class B which has member vector of A.

Class B will have methods filterBy..., which will eliminate messages from vector by parameters range.
For example: user can choose priority 10-20 or more than 12. For part of parameters you need multiple methods (by range: from, to; minimum value etc.).
You browse on all available messages and fulfill the vector.
You call filter methods for each parameter which has not null value.

The result will be list of messages by user query. Now you can get messages by messageID.
_________________
Best regards.
Yaakov
SWG, IBM Commerce, Israel
Back to top
View user's profile Send private message Send e-mail
bower5932
PostPosted: Thu Feb 20, 2003 7:04 am    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

If you are expecting a large number of messages on your queue, you might find it pretty costly to browse the queue to fill your message vector....
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Message Filtering
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.