wood burning stoves
The moose likes Java in General and the fly likes Does anyone have a message filtering implementation? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Does anyone have a message filtering implementation?" Watch "Does anyone have a message filtering implementation?" New topic

Does anyone have a message filtering implementation?

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
hello guys..
this is my problem:
A user can define as many properties as he wants: For example, for a car he can define:
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..

I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Peter Kristensson
Ranch Hand

Joined: Jul 02, 2001
Posts: 118
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
subject: Does anyone have a message filtering implementation?
It's not a secret anymore!