commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <>
Subject [messenger] support for JMS bridges has been added
Date Wed, 15 May 2002 14:39:30 GMT
The Messagelet engine in the messenger project now supports the concept of
'bridges' which allow messages to be consumed from one subscription on a JMS
connection and sent on another JMS connection and destination. This allows,
say, SpiritWave messages on some Topic to be consumed and sent to an
MQSeries queue. This mechanism works on any JMS providers and on queues
and/or topics on either end.

The clever stuff is all done by a special Message Driven Object called
BridgeMDO. BridgeMDO also provides a plethora of Factory methods and
Strategy methods so that it should be pretty easy to derive from to perform
any kind of arbitrary transformation as the message passes from one JMS
provder to another. Also various custom 'commit' mechanisms can be employed.

As part of this change the subscription deployment descriptor has changed a
little; the attributes 'connection' and 'subject' are used instead of
'messenger' and 'destination' on the <subscription> element.

Here's an example subscription.xml document that demonstrates how to bridge
from one JMS provider to another. Note that selectors can be used to filter

  <subscription connection="spiritWave.topic" subject="foo.input">
    <bridge outputConnection="mqseries.queue" outputSubject="foo.output"/>

  <!-- use my own BridgeMDO class to do some custom transformation -->
  <subscription connection="spiritWave.queue" subject="foo.input">
    <bridge outputConnection="jboss.topic" outputSubject="foo.output"

Going forward when more complex transformations that are required, I hope to
integrate support for Jelly scripts that can then perform XSLT, XPath, SQL
etc in a similar manner to using JSTL inside JSP.


Do You Yahoo!?
Get your free address at

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message