]
Bernd Ruecker commented on JBESB-2805:
--------------------------------------
Hi Ricardo!
Thanks for providing this. I still miss some functionality: What if I have an XML file
with multiple items in it and I want to split the message into messages, one for every
item. So all resulting messages go to the same destination, but with a different payload.
Like a for each loop.
That would be a very good thing to include as well! Or is there work already done on this?
Cheers
Bernd
Splitter EAI Pattern: A router that really split the message and
delivery the message parts to different message channels
-------------------------------------------------------------------------------------------------------------------------
Key: JBESB-2805
URL:
https://jira.jboss.org/jira/browse/JBESB-2805
Project: JBoss ESB
Issue Type: Feature Request
Security Level: Public(Everyone can see)
Components: Content Based Routing
Affects Versions: 4.4, 4.5, 4.6
Reporter: Ricardo Ferreira
Attachments: jboss-esb-splitter-test.zip, Splitter.java, Splitter.java
Current JBoss ESB Routers (StaticRouter and StaticWiretap) does not implement fully the
EAI Patterns Splitter (
http://www.eaipatterns.com/Sequencer.html). Those implementations
just take the incoming message and redelivery for diferent services using basic routing.
But in the pattern description we found:
"Use a Splitter to BREAK OUT the composite message into a series of INDIVIDUAL
MESSAGES, each containing data related to one item"
The proposal is to implement a generic Splitter (org.jboss.soa.esb.actions.Splitter) that
takes a message, and, using Smooks, separate the message onto diferent messages
(individual messages) and send those individual messages to others message channels.
Here's a example of this action:
<action name="splitter"
class="org.jboss.soa.esb.actions.Splitter">
<property name="destinations">
<route-to
service-category="Enterprise Business Services"
service-name="FirstService">
<message-splitter
smooksConfig="/META-INF/smooks-res-1.xml"
resultType="STRING" />
</route-to>
<route-to
service-category="Enterprise Business Services"
service-name="SecondService">
<message-splitter
smooksConfig="/META-INF/smooks-res-2.xml"
resultType="JAVA" />
</route-to>
</property>
</action>
I've implemented this action and it is fully working in the following enviroment:
OS: Red Hat Enterprise Linux 5
JVM: Sun JDK 1.5-16
JBoss ESB 4.5
I would like that this feature would be available in the JBoss ESB and the SOA Platform
product, since, I've customers that asked me for this kind of feature.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: