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 » Publish/Subscribe whith filtering

Post new topic  Reply to topic
 Publish/Subscribe whith filtering « View previous topic :: View next topic » 
Author Message
Heurton
PostPosted: Wed Dec 03, 2003 5:50 am    Post subject: Publish/Subscribe whith filtering Reply with quote

Novice

Joined: 19 Nov 2003
Posts: 16

Hi,

I want to use a filter in a subscription. I used the Rfhutil tool to create the subscription.

But, even in case my condition is TRUE, there is no message in the subscription queue.

Find below my sample message and my filtering condition:

<Message>
<Topic>Pneu/Sport</Topic>
<Donnee>
<Gomme>aaaaa</Gomme>
<Dia>15</Dia>
</Donnee>
<Type>123</Type>
</Message>

Body.Message.Type = '123'

If I leave it blank, it works.

Any help would be welcome!

Thanks
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Dec 03, 2003 6:08 am    Post subject: Re: Publish/Subscribe whith filtering Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Heurton wrote:
Body.Message.Type = '123'

If I leave it blank, it works.
Type is a reserved word. Try
Code:
Body.Message."Type" = '123'

_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Heurton
PostPosted: Wed Dec 03, 2003 7:08 am    Post subject: Publish/Subscribe whith filtering Reply with quote

Novice

Joined: 19 Nov 2003
Posts: 16

If I write Body.Message."Type" = '123', the subscription is not registered.

I have changed the Tags Message and Type:

My new message is:

<Titi>
<Topic>Pneu/Sport</Topic>
<Donnee>
<Gomme>aaaaa</Gomme>
<Dia>15</Dia>
</Donnee>
<Toto>123</Toto>
</Titi>

I tried this Filtering condition:

Body.Titi.Toto = '123'
Body.Titi.Toto = 123
Titi.Toto = '123'
Titi.Toto = 123

but the result is the same: No message in the subscription Queue!

I tried with this filter

Titi.Toto IS NULL

and I find the message in the queue... but this is NOT the filter I nied!

Have you another idea?

Thanks
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 » Publish/Subscribe whith filtering
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.