Author |
Message
|
sai kumar adduri |
Posted: Tue Sep 03, 2013 9:37 am Post subject: content based routing using pub/sub |
|
|
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 |
|
 |
lancelotlinc |
Posted: Tue Sep 03, 2013 9:41 am Post subject: |
|
|
 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 |
|
 |
sai kumar adduri |
Posted: Tue Sep 03, 2013 9:45 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Tue Sep 03, 2013 9:49 am Post subject: |
|
|
 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 |
|
 |
sai kumar adduri |
Posted: Tue Sep 03, 2013 9:55 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Tue Sep 03, 2013 10:02 am Post subject: |
|
|
 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 |
|
 |
sai kumar adduri |
Posted: Tue Sep 03, 2013 10:05 am Post subject: |
|
|
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 |
|
 |
lancelotlinc |
Posted: Tue Sep 03, 2013 10:09 am Post subject: |
|
|
 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 |
|
 |
sai kumar adduri |
Posted: Wed Sep 04, 2013 8:22 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
I have resolved it ,
Solution:Replace Inputroot with Root in the filter expression |
|
Back to top |
|
 |
lancelotlinc |
Posted: Wed Sep 04, 2013 9:13 am Post subject: |
|
|
 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 |
|
 |
sai kumar adduri |
Posted: Wed Sep 04, 2013 9:41 am Post subject: |
|
|
Acolyte
Joined: 04 Apr 2013 Posts: 73
|
|
Back to top |
|
 |
|