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 » WebSphere Message Broker (ACE) Support » content based routing using pub/sub

Post new topic  Reply to topic
 content based routing using pub/sub « View previous topic :: View next topic » 
Author Message
sai kumar adduri
PostPosted: Tue Sep 03, 2013 9:37 am    Post subject: content based routing using pub/sub Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

Hi all,
I am trying to implement content based routing using pub sub .
I have enabled this property in Excetuion group.
I need to set a property called filter in the Psc , but how to compare them .
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 03, 2013 9:41 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Where do you think you could READ about this information ? Where do you think you could be trained to recognize this information ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sai kumar adduri
PostPosted: Tue Sep 03, 2013 9:45 am    Post subject: Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

Sry for that ,
I have add the Filter element in psc , but still it is publishing every thing (irrespective of the conent)
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 03, 2013 9:49 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

sai kumar adduri wrote:
Sry for that ,
I have add the Filter element in psc , but still it is publishing every thing (irrespective of the conent)


Then, what is your plan for troubleshooting ? Surely, you are not expecting to post here with insufficient information and insufficient effort on your part and find an answer?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sai kumar adduri
PostPosted: Tue Sep 03, 2013 9:55 am    Post subject: Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

What I am trying to do is I will be getting diff kinds of request ids in the input payload , based on the request id it should be published in the respective queue, although the topic is same ,different queues are subscribed to it .

And to do this I have enabled content based routing in execution group.
And while subscribing to the topic I have set the psc.filter with the comparison expression .
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 03, 2013 10:02 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Ok, you've defined WHAT you want to do. How will you find out why is it not working ? What tools will you use to help you understand why the expression is not effective ?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sai kumar adduri
PostPosted: Tue Sep 03, 2013 10:05 am    Post subject: Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

This is how I am setting the filter property , is it correct ., where the tree structure is the incoming message and 1 is the request id req
SET OutputRoot.MQRFH2.psc.Filter='1='||InputRoot.XMLNSC.sapzfinotiti.SAPTransactionID.SapIDocControlRecord.Zrequestid;
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 03, 2013 10:09 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

sai kumar adduri wrote:
This is how I am setting the filter property , is it correct ., where the tree structure is the incoming message and 1 is the request id req
SET OutputRoot.MQRFH2.psc.Filter='1='||InputRoot.XMLNSC.sapzfinotiti.SAPTransactionID.SapIDocControlRecord.Zrequestid;


WHAT TOOLS WILL YOU USE?

Examples of tools you could use are:

- Trace nodes
- User Trace (which is not the same as Trace node)


Perhaps you have failed to specify a namespace ?


Also, just for your future reference, you are trying to route messages based on CONTENT not connect or conect or conent. Message CONTENT determines the path messages follow. Thats why they called it "Content-based routing". CONTENT.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sai kumar adduri
PostPosted: Wed Sep 04, 2013 8:22 am    Post subject: Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

I have resolved it ,
Solution:Replace Inputroot with Root in the filter expression
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Sep 04, 2013 9:13 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

sai kumar adduri wrote:
I have resolved it ,
Solution:Replace Inputroot with Root in the filter expression


Great job ! And you did it on your own !
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
sai kumar adduri
PostPosted: Wed Sep 04, 2013 9:41 am    Post subject: Reply with quote

Acolyte

Joined: 04 Apr 2013
Posts: 73

yup
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » content based routing using pub/sub
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.