|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Condition check with content filter in Publish/Subscriber |
« View previous topic :: View next topic » |
Author |
Message
|
veera_clr |
Posted: Tue Nov 10, 2009 9:49 pm Post subject: Condition check with content filter in Publish/Subscriber |
|
|
Novice
Joined: 12 Oct 2009 Posts: 17
|
Hi All,
Good Morning,
I am working on publish/subscriber in broker. I have requirement to register the subscribers with content filter. I have done a sample with the following subscriber flow. sample is working fine.
SET OutputRoot.MQRFH2.psc.Command = 'RegSub';
SET OutputRoot.MQRFH2.psc.Topic = 'Topic3';
SET OutputRoot.MQRFH2.psc.RegOpt='PubOnReqOnly';
SET OutputRoot.MQRFH2.psc.QName = 'SUBSCRIBER_QUEUE1';
SET OutputRoot.MQRFH2.psc.Filter = InputRoot.XML.DATA.BUSINESS_SEG LIKE 'S%';
Sample is working fine. When i am subscribing the message with publisher flow.
**But now my requirement is to check the different conditions with input message fields in same filter. Could any of suggest me how to do the condition checking in filter while subscriber register with topic.
Thanks,
Veera
Could you any body |
|
Back to top |
|
 |
jugo |
Posted: Tue Nov 17, 2009 7:34 am Post subject: |
|
|
Novice
Joined: 17 Nov 2009 Posts: 13
|
It's not very clear to me what you mean. Perhaps you could expand more or give some examples?
I'm also slightly concerned that your filter expression does not have quotes round it. When building up your subscription message, the filter should just be a string. |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Nov 17, 2009 8:30 pm Post subject: Re: Condition check with content filter in Publish/Subscribe |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
veera_clr wrote: |
SET OutputRoot.MQRFH2.psc.Filter = InputRoot.XML.DATA.BUSINESS_SEG LIKE 'S%';
Sample is working fine. When i am subscribing the message with publisher flow.
**But now my requirement is to check the different conditions with input message fields in same filter. Could any of suggest me how to do the condition checking in filter while subscriber register with topic.
Thanks,
Veera
Could you any body |
First thing first... Pls DO NOT use XML domain... its deprecated
now as far as i remember, for content filtering, to be done by broker, the message should be in MRM domain... (though i stand to be correct here) _________________ Cheers |
|
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
|
|
|
|