[jboss-svn-commits] JBL Code SVN: r27974 - labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_stream.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Mon Jul 13 16:26:37 EDT 2009
Author: tfennelly
Date: 2009-07-13 16:26:36 -0400 (Mon, 13 Jul 2009)
New Revision: 27974
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_stream/readme.txt
Log:
https://jira.jboss.org/jira/browse/JBESB-2740
Updated readme.
Modified: labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_stream/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_stream/readme.txt 2009-07-13 20:08:43 UTC (rev 27973)
+++ labs/jbossesb/trunk/product/samples/quickstarts/transform_XML2XML_stream/readme.txt 2009-07-13 20:26:36 UTC (rev 27974)
@@ -1,11 +1,15 @@
Overview:
=========
- This is a very basic example of how to "stream" a fragment of a transformation
- to an ESB Service. The trick behind this is using a Smooks DOMVisitor (a SAXVisitor
- will soon appear) that send the element it is passed in its visitBefore and/or
- visitAfter. For more information about Smooks visitor see Smooks User Guide:
- http://milyn.codehaus.org/Smooks+User+Guide
-
+ This is a very basic example of how to split an XML message into fragments and
+ route each of the fragments as XML (of a different format) to an ESB Service.
+
+ This quickstart uses Smooks to split the message. But input message is XML,
+ but it could just as easily be EDI, CSV etc. Likewise, the output format
+ could be of a different format by simply adjusting the FreeMarker template.
+
+ For more details on splitting messages with Smooks, see the SmooksUserGuide.pdf
+ in the ESB documentation.
+
Running this quickstart:
========================
Please refer to 'ant help-quickstarts' for prerequisites about the quickstarts
@@ -21,30 +25,4 @@
'ant runtest'.
3. Switch back to Application Server console to see the output from the ESB
4. In this folder ("Window1"), type 'ant undeploy'.
-
-What to look at in this Quickstart:
-===================================
- As stated above, reading the "Message Transformation" chapter in the ServicesGuide.pdf would
- be of great benefit in understanding JBoss ESB Transformations.
-
- jboss-esb.xml:
- The ESB configuration file in this Quickstart simply defines a JMS Listener
- for receiving the contents of the SampleOrder.xml file located in this
- folder. This XML message will be transformed by this service.
-
- smooks-res.xml:
- This file defines the Transformations for the Quickstart. This is where
- we configure the DOMVisitor:
- <resource-config selector="OrderLines">
- <resource>org.jboss.soa.esb.visitors.DOMServiceDelegateVisitor</resource>
- <param name="service-category-name">FirstServiceESB</param>
- <param name="service-name">sendToJMSQueue</param>
- <param name="send-in-visit-after">true</param>
- </resource-config>
- When Smooks finds a match for the selector OrderLines (the transformed OrderLines fragment)
- it will invoke the DOMServiceDelegateVisitor's visitAfter() method. visitAfter contains the
- logic to wrap the Element pass to it in an ESB Message object and send that object to the
- configured service.
- Any number of Visitors can be added and you can do all sorts of things in them.
-
More information about the jboss-svn-commits
mailing list