[jboss-svn-commits] JBL Code SVN: r12350 - labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Wed Jun 6 10:14:31 EDT 2007


Author: tfennelly
Date: 2007-06-06 10:14:30 -0400 (Wed, 06 Jun 2007)
New Revision: 12350

Added:
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml
Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml
   labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml
Log:
readded the smooks-res.xml - was deleted for some reason

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml	2007-06-06 06:27:48 UTC (rev 12349)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/build.xml	2007-06-06 14:14:30 UTC (rev 12350)
@@ -2,6 +2,8 @@
 
     <property environment="env" />
 
+    <property name="additional.deploys" value="smooks-res.xml" />
+    
     <!-- Import the base Ant build script... -->
     <import file="../conf/base-build.xml"/>
 

Modified: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml	2007-06-06 06:27:48 UTC (rev 12349)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/jboss-esb.xml	2007-06-06 14:14:30 UTC (rev 12350)
@@ -114,15 +114,13 @@
                 <!-- Transform the incoming CSV order approval record into a populated
                      com.activebpel.ordermanagement.SalesOrderNotification instance. -->
                 <action name="message-populator" class="org.jboss.soa.esb.actions.converters.SmooksTransformer">
-                        <property name="resource-config" value="/smooks-res-csv2xml.xml" />
-                    <property name="from" value="OrderManager"/>
-                    <property name="from-type" value="text/csv:orderApproval"/>
-                    <property name="to" value="RetailerCallback"/>
-                    <property name="to-type" value="text/xml:SendSalesOrderNotification"/>
+                    <property name="resource-config" value="/smooks-res-csv2xml.xml" />
                 </action>
+
                 <action name="print-after-transform" class="org.jboss.soa.esb.actions.SystemPrintln">
                     <property name="message" value="[Quickstart_webservice_bpel] Message after transform and before SOAPClient"/>
                 </action>
+
                 <!-- Inject the com.activebpel.ordermanagement.SalesOrderNotification instance
                      into the SOAPClient. SOAPClient will use SOAPUI to construct a soap request
                      template and will then use OGNL to populate the values (from the Smooks 

Added: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml	                        (rev 0)
+++ labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml	2007-06-06 14:14:30 UTC (rev 12350)
@@ -0,0 +1,26 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+    <!--
+    Set the parser for the message - CSV.
+    -->
+    <resource-config selector="org.xml.sax.driver">
+        <resource>org.milyn.csv.CSVParser</resource>
+        <param name="fields" type="string-list">
+            orderNum,customerNumber,customerName,orderDate
+        </param>
+    </resource-config>
+
+    <!--
+    Suck the order number out of the CSV record and into the SalesOrderNotification bean.
+    -->
+	<resource-config selector="csv-record orderNum">
+        <resource>org.milyn.javabean.ProcessingPhaseBeanPopulator</resource>
+        <param name="beanId">salesOrderNotification</param>
+        <param name="beanClass">com.activebpel.ordermanagement.SalesOrderNotification</param>
+        <param name="bindings">
+            <binding property="orderNumber" selector="csv-record orderNum" />
+        </param>
+	</resource-config>
+
+</smooks-resource-list>
\ No newline at end of file


Property changes on: labs/jbossesb/trunk/product/samples/quickstarts/webservice_bpel/smooks-res.xml
___________________________________________________________________
Name: svn:mime-type
   + text/xml
Name: svn:eol-style
   + native




More information about the jboss-svn-commits mailing list