Hey Ricardo.
This looks great and I'm sure it would be a great addition to the ESB!!
A few small comments...
1. I think the implementation of the Splitter class could be optimized greatly.... create
and cache the ServiceInvoker and Smooks instances up front, from the ConfigTree, as part
of the constructor. I think this should make a huge difference to your performance.
2. Load all the Smooks configs into one Smooks instance. Then, you can do all the
splitting in a single pass of the message, versus iterating over the destination list.
Again... this should make a big difference to performance!!
3. I think a great extension to this action might be a "shorthand" config
version where you don't need to specify a Smooks config at all. Instead, the route-to
config just specifies an XML fragment path that the user wants split out of the message.
Of course, this would only split and route XML fragments, but that's probably fine for
many use cases.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4252681#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...