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 Filtering in v6 pub sub

Post new topic  Reply to topic
 Content Based Filtering in v6 pub sub « View previous topic :: View next topic » 
Author Message
AkankshA
PostPosted: Sun Jun 25, 2006 4:11 am    Post subject: Content Based Filtering in v6 pub sub Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

Hi,

I want to do content based filtering in MB v6 pub sub but my message contains namespaces which to my knowledge is not supported by broker...

Any ideas for implementation..
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Sun Jun 25, 2006 10:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

I'd suggest you just try it the way the way that makes sense.

If that doesn't work, post what you tried and what happened.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Jun 26, 2006 2:02 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

I am still in design phase so don have enough infrastructure in place for trial....

I have read that eSQL is not namespace aware and one can extract the data from a message with name space using xpath syntax in java compute node... is this correct???
Back to top
View user's profile Send private message Visit poster's website
Bill.Matthews
PostPosted: Mon Jun 26, 2006 4:20 am    Post subject: Reply with quote

Master

Joined: 23 Sep 2003
Posts: 232
Location: IBM (Retired)

Akanksha wrote:
I am still in design phase so don have enough infrastructure in place for trial....

I have read that eSQL is not namespace aware and one can extract the data from a message with name space using xpath syntax in java compute node... is this correct???


eSQL can deal with Namespaces - that is why there is a DEFINE NAMESPACE. So the first part of your assumption is incorrect. The second part, using XPATH in a JavaCompute node is correct.

Both V6 and V5 provide support for Namespaces.
_________________
Bill Matthews
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Jun 26, 2006 4:27 am    Post subject: Reply with quote

Grand Master

Joined: 12 Jan 2006
Posts: 1494
Location: Singapore

I am working in v6

but is the esql expression specified for content filter is name space aware....
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Mon Jun 26, 2006 4:31 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Try it.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
martc
PostPosted: Mon Jan 22, 2007 11:46 am    Post subject: Reply with quote

Apprentice

Joined: 23 Mar 2005
Posts: 39

Try to specify your content filter this way, at least this is how I got it to work for me.

"Root.XMLNS.soapenv:Envelope.soapenv:Header.wsa:To"='http://xxxxx'

FYI - I do have these namespaces declared in my ESQL flow as such:

DECLARE soapenv NAMESPACE 'http://schemas.xmlsoap.org/soap/envelope/';
DECLARE xsd NAMESPACE 'http://www.w3.org/2001/XMLSchema';
DECLARE xsi NAMESPACE 'http://www.w3.org/2001/XMLSchema-instance';
DECLARE wsa NAMESPACE 'http://schemas.xmlsoap.org/ws/2004/08/addressing';
DECLARE wsse NAMESPACE 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd';
DECLARE FTMFErrNamespace NAMESPACE 'http://middleware.frk.com/XMLSchemas/Common/v100';

Im not sure if taking them out would make the content filter fail.

Here is what is interesting about this. The documentation says that namespaces in CBF are not supported yet like I said it worked. Could this have been a CSD upgrade? Were using WBI 6.0 csd 3.

-----
An MQRFH2 subscriber can also request that some content-based filtering is performed on the MQRFH publications that they are subscribing to. Content-based filtering can be done only if the body of the publication is in a format that can be parsed by the broker; that is, if the publication message can be interpreted by one of the broker's default parsers. For example, messages in XML or MQPCF format can be processed in this way.

You cannot use the XMLNS parser, or the MRM XML parser with namespace, for content-based filtering, but you can use the XML parser, and reference an element that is in the format namespace:field because the XML parser treats this reference as one element called namespace:field.

--
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 Filtering in v6 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.