Author |
Message
|
yshakraj |
Posted: Tue Sep 24, 2013 2:53 am Post subject: how to differentiate request through http and MQ in a WSP |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
Hi All,
I have a requirement as below,
1) WSP/MPG ---> Configured with Mutliple FSH like https + MQ ---- > Where we have Multiple rules and we need to match on MQ URI to hit the rule.
Both the requests has same structure - so i cannot use x path to distinguish the data.
Please let me know if we have any options to solve this.
Thanks ,
yshak |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Sep 24, 2013 3:25 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
To perform content-based routing, you need to have something in your content that is unique. If the content is exactly the same, what is the purpose of routing the messages to different end points? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
yshakraj |
Posted: Tue Sep 24, 2013 4:10 am Post subject: |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
hi ,
We are having two different sources , one coming thru http and other thru MQ. and operations performed on both are different. So we need different rules for each .
Thanks,
yshak |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Sep 24, 2013 4:20 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
yshakraj wrote: |
hi ,
We are having two different sources , one coming thru http and other thru MQ. and operations performed on both are different. So we need different rules for each .
Thanks,
yshak |
Ok, still do not see where you have a problem. You said : " i cannot use x path to distinguish the data. Please let me know if we have any options to solve this. "
What does xpath have to do with rules for http or rules for MQ if you are not routing the message based on content ? _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
yshakraj |
Posted: Tue Sep 24, 2013 4:58 am Post subject: |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
Hi ,
We are using two frontside handlers -one for https for one source and one is MQ FSH . Both request structure is same and was not able to distuinguish between the requests .
We need a way to identify the request - whether it has come thru http or MQ in the Match action level.
Thanks,
yshak |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Sep 24, 2013 5:04 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
yshakraj wrote: |
Hi ,
We are using two frontside handlers -one for https for one source and one is MQ FSH . Both request structure is same and was not able to distuinguish between the requests .
We need a way to identify the request - whether it has come thru http or MQ in the Match action level.
Thanks,
yshak |
See the discussion on multi-protocol gateway . _________________ http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER |
|
Back to top |
|
 |
TXMQ_Doyle |
Posted: Wed Dec 04, 2013 11:43 am Post subject: |
|
|
 Novice
Joined: 04 Dec 2013 Posts: 18
|
Hello,
So are you wanting to do different processing to the message if it came in from MQ rather than http?
If so, you should be able to match on the MQ header. If not, then why does it matter that you need to differentiate between the two?
sorry for the confusion,
Doyle
TXMQ Inc. |
|
Back to top |
|
 |
vishBroker |
Posted: Wed Jan 29, 2014 2:25 pm Post subject: |
|
|
Centurion
Joined: 08 Dec 2010 Posts: 135
|
In the first match rule have URL as 'http://*' => this will give you http requests.
Second one would be ALL (*)
Another approach is
1. make the match rule = ALL
2. In the first Xform action (make it binary/xml depending upon ur input)
- check the headers
3. If MQ headers are found - call MQ request processing rule
4. If http headers are found - call HTTP request processing rule |
|
Back to top |
|
 |
TXMQ_Doyle |
Posted: Wed Jan 29, 2014 2:27 pm Post subject: |
|
|
 Novice
Joined: 04 Dec 2013 Posts: 18
|
Agree with VishBroker...
Not as much traffic on this forum ... |
|
Back to top |
|
 |
vishBroker |
Posted: Wed Jan 29, 2014 2:33 pm Post subject: |
|
|
Centurion
Joined: 08 Dec 2010 Posts: 135
|
True !
I mainly use this site for WMB/MQ.
Saw the DP forum and wanted to pitch in
developerWorks has better DP forum - if one needs. |
|
Back to top |
|
 |
TXMQ_Doyle |
Posted: Wed Jan 29, 2014 2:59 pm Post subject: |
|
|
 Novice
Joined: 04 Dec 2013 Posts: 18
|
Yeah, i try to stay on the Developer Works when i can |
|
Back to top |
|
 |
bharathi.tech12 |
Posted: Wed Apr 23, 2014 5:23 am Post subject: |
|
|
Voyager
Joined: 14 May 2013 Posts: 93
|
You can also use the service variable to find the FSH as HTTP or HTTPS.
var://service/protocol=='http/https'
similarly like MQ. |
|
Back to top |
|
 |
|