This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Does anyone have a message filtering implementation?

 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys..
this is my problem:
A user can define as many properties as he wants: For example, for a car he can define:
model
color
type (sedan,..)
He can also specify values for it:
model > 1999
color = blue
type = sedan
Now, I have an application that publishes messages to a topic. So a publisher will do something like this:
model = 200 AND color = blue AND type = sedan
these rules fulfill the user's requirements, so the message should go this user. It is basically the concept of message selector in Java MEssage Service (JMS), and it is a subset of sql-92.
I need to implement this functionality for a different context (without using JMS) and I was wondering if someone here has any open source implementation of this message filtering, i don't wanna reinvent the wheel..
thanks
 
Peter Kristensson
Ranch Hand
Posts: 118
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Depends on what you wan't to do with it.
I once build something similar that parses a search string containing a=b AND c=d AND ... and inserts the results in a tree-like structure. The tree was then used to get results and combining these.
Is this what you want, to filter the stuff and then use it for searching?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic