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 DataPower » how to differentiate request through http and MQ in a WSP

Post new topic  Reply to topic
 how to differentiate request through http and MQ in a WSP « View previous topic :: View next topic » 
Author Message
yshakraj
PostPosted: Tue Sep 24, 2013 2:53 am    Post subject: how to differentiate request through http and MQ in a WSP Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 24, 2013 3:25 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
yshakraj
PostPosted: Tue Sep 24, 2013 4:10 am    Post subject: Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 24, 2013 4:20 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
yshakraj
PostPosted: Tue Sep 24, 2013 4:58 am    Post subject: Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
lancelotlinc
PostPosted: Tue Sep 24, 2013 5:04 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
TXMQ_Doyle
PostPosted: Wed Dec 04, 2013 11:43 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
vishBroker
PostPosted: Wed Jan 29, 2014 2:25 pm    Post subject: Reply with quote

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
View user's profile Send private message
TXMQ_Doyle
PostPosted: Wed Jan 29, 2014 2:27 pm    Post subject: Reply with quote

Novice

Joined: 04 Dec 2013
Posts: 18

Agree with VishBroker...

Not as much traffic on this forum ...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
vishBroker
PostPosted: Wed Jan 29, 2014 2:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
TXMQ_Doyle
PostPosted: Wed Jan 29, 2014 2:59 pm    Post subject: Reply with quote

Novice

Joined: 04 Dec 2013
Posts: 18

Yeah, i try to stay on the Developer Works when i can
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bharathi.tech12
PostPosted: Wed Apr 23, 2014 5:23 am    Post subject: Reply with quote

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
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 DataPower » how to differentiate request through http and MQ in a WSP
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.