|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Filtering |
« View previous topic :: View next topic » |
Author |
Message
|
sivadharsan |
Posted: Sat Feb 15, 2003 9:09 pm Post subject: Message Filtering |
|
|
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 |
|
 |
mgrabinski |
Posted: Wed Feb 19, 2003 11:06 pm Post subject: |
|
|
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 |
|
 |
yaakovd |
Posted: Thu Feb 20, 2003 6:42 am Post subject: |
|
|
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 |
|
 |
bower5932 |
Posted: Thu Feb 20, 2003 7:04 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|