[jboss-dev-forums] [JBoss ESB Development] - Re: JBESB-2805 - Splitter EAI Pattern

tfennelly do-not-reply at jboss.com
Mon Aug 31 13:44:44 EDT 2009


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#4252681

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4252681



More information about the jboss-dev-forums mailing list