activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: newbie request for help - custom server implementation in ActiveMQ?
Date Thu, 09 Nov 2006 10:20:51 GMT
The "Messaging Way" or MESTafarian way of solving these kinds of
problems is to have 2 destinations, X1 and X2. Publishers send to X1
then some process transforms those messages in some way and sends them
to X2. Then this approach works with any message provider and you can
have an arbitrary number of transformations between your producers and
ultimate consumers - so the system is very simple & loosely coupled.

If you only have 1 concrete transformation step and you don't mind
being ActiveMQ specific you could just install a broker interceptor to
do the transformation...

http://incubator.apache.org/activemq/interceptors.html

On 11/9/06, J. Patrick Bedell <jpbedell@gmail.com> wrote:
> Hi,
>   I'm afraid that I can't blame you. :)
>   I would like to have a filter placed within the processing of
> messages sent to a particular set of topics, where messages to a
> particular topic are processed (in an application-specific way) to
> remove certain information from the incoming message before it is
> relayed to all the subscribers to the topic.  i.e., I would like to
> receive the XML
>
> <applicationMessage>
> <publicInfo>blah blah</publicInfo>
> <secretInfo>squeamish ossifrage</secretInfo>
> </applicationMessage>
>
> published to a topic X, and relay to all the subscribers to topic X
> the processed message
>
> <applicationMessage>
> <publicInfo>blah blah</publicInfo>
> </applicationMessage>
>
> My questions are, what interface should the modifying class implement,
> and what modifications would I make to the activemq.xml configuration
> file so that the class modifies the received XML appropriately?  Are
> there any pointers to similar application requirements that others can
> provide?  Thanks very much!
>
>    Patrick
>    jpbedell@gmail.com
>
>    P.S.:  FWIW, the development of information currency is my attempt
> to create new ways to recognize and value the contributions of
> open-source developers - think of information currency as "stock
> shares" for information, such as individual commits to the ActiveMQ
> svn repository.  The sooner I've got this trading application
> developed, the sooner I can express my deep appreciation for your work
> in terms of prices, in addition to words of thanks and development
> decisions based on your outstanding work. :)
>
> On 11/9/06, James Strachan <james.strachan@gmail.com> wrote:
> > On 11/9/06, J. Patrick Bedell <jpbedell@gmail.com> wrote:
> > > Hello,
> > >    I am interested in using ActiveMQ to develop a market for
> > > information currency (http://infoeng.sourceforge.net).  I'm a real
> > > ActiveMQ/Spring newbie, so I'm not very clear on how to create a POJO
> > > to serve as a filter for certain messages sent to the server.
> >
> > I don't really understand the question I'm afraid.
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message