[jboss-svn-commits] JBL Code SVN: r27788 - in labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route: 01_split_enrich_transform_route/smooks_configs/routing and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Thu Jul 9 10:21:43 EDT 2009
Author: tfennelly
Date: 2009-07-09 10:21:43 -0400 (Thu, 09 Jul 2009)
New Revision: 27788
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/bindings.xml
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-02_Low_Price_Service.xml
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-03_High_Price_Service.xml
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-04_Reptiles_notify_webservice_proxy.xml
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.lck
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.log
labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.properties
Log:
https://jira.jboss.org/jira/browse/JBESB-2703
huge-split-enrich-transform-route updates
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/bindings.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/bindings.xml 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/bindings.xml 2009-07-09 14:21:43 UTC (rev 27788)
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
- xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd">
<!--
Virtual Model Binding Configurations for the order message elements...
@@ -15,23 +15,23 @@
<!--
Bind the main order details....
-->
- <jb:bindings beanId="orderDetail" class="java.util.HashMap" createOnElement="order">
+ <jb:bean beanId="orderDetail" class="java.util.HashMap" createOnElement="order">
<jb:value property="orderNum" data="header/order-id" decoder="Long" />
<jb:value property="uname" data="customer-details/username" />
<jb:value property="date" data="header/date" decoder="Date">
<jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
</jb:value>
- </jb:bindings>
+ </jb:bean>
<!--
Bind each order-item. Not building a list of order items because we only want to have
one order-item in memory at any one time. This way, we can handle a huge orders with many
many order items..
-->
- <jb:bindings beanId="orderItem" class="java.util.HashMap" createOnElement="order-item">
+ <jb:bean beanId="orderItem" class="java.util.HashMap" createOnElement="order-item">
<jb:value property="position" data="order-item/position" decoder="Integer" />
<jb:value property="quantity" data="order-item/quantity" decoder="Integer" />
<jb:value property="productId" data="order-item/product-id" />
- </jb:bindings>
+ </jb:bean>
</smooks-resource-list>
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-02_Low_Price_Service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-02_Low_Price_Service.xml 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-02_Low_Price_Service.xml 2009-07-09 14:21:43 UTC (rev 27788)
@@ -4,17 +4,9 @@
xmlns:esbr="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd">
<!--
- At the end of every order-item, route the order item XML ("02_XML_OrderItem") to the
- "02_Low_Price" Service, if the total is 20 or less...
- -->
- <esbr:routeBean beanIdRef="02_XML_OrderItem" toServiceCategory="HugeQS" toServiceName="02_Low_Price" routeOnElement="order-item">
- <condition><!-- product.LISTPRICE * orderItem.quantity <= 17.00 --></condition>
- </esbr:routeBean>
-
- <!--
At the end of every order-item, generate an <ord> split message for the "02_XML" Service
and bind it back into the bean context under a bean ID of "02_XML_OrderItem". 02_XML_OrderItem
- will be router by the FragmentRouter (configured above)..
+ will be router by the bean router (configured below)..
-->
<ftl:freemarker applyOnElement="order-item">
<ftl:template><!--<ord id="${orderDetail.orderNum?c}" date="${orderDetail.date?string("yyyy-MM-dd")}">
@@ -36,4 +28,12 @@
</ftl:use>
</ftl:freemarker>
+ <!--
+ At the end of every order-item, route the order item XML ("02_XML_OrderItem") to the
+ "02_Low_Price" Service, if the total is 20 or less...
+ -->
+ <esbr:routeBean beanIdRef="02_XML_OrderItem" toServiceCategory="HugeQS" toServiceName="02_Low_Price" routeOnElement="order-item">
+ <condition><!-- product.LISTPRICE * orderItem.quantity <= 17.00 --></condition>
+ </esbr:routeBean>
+
</smooks-resource-list>
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-03_High_Price_Service.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-03_High_Price_Service.xml 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-03_High_Price_Service.xml 2009-07-09 14:21:43 UTC (rev 27788)
@@ -1,14 +1,7 @@
<?xml version="1.0"?>
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
- xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
xmlns:esbr="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd">
- <!--
- At the end of every order-item, route the order item Java Objects ("03_order") to the
- "03_High_Price" Service, if the price per item is 190 or more...
- -->
- <esbr:routeBean beanIdRef="03_order" toServiceCategory="HugeQS" toServiceName="03_High_Price" routeOnElement="order-item">
- <condition><!-- product.LISTPRICE > 190.00 --></condition>
- </esbr:routeBean>
<!--
At the end of every order-item, bind together the orderDetail with the current
@@ -20,28 +13,36 @@
03_order gets routed by the above config..
-->
- <jb:bindings beanId="03_order" class="org.jboss.soa.esb.example.highprice.Order" createOnElement="order-item">
+ <jb:bean beanId="03_order" class="org.jboss.soa.esb.example.highprice.Order" createOnElement="order-item">
<jb:wiring property="address" beanIdRef="03_address" />
<jb:wiring property="product" beanIdRef="03_product" />
<jb:expression property="firstName">accounts[0].FIRSTNAME</jb:expression>
<jb:expression property="lastName">accounts[0].LASTNAME</jb:expression>
<jb:expression property="date">orderDetail.date</jb:expression>
<jb:expression property="quantity">orderItem.quantity</jb:expression>
- </jb:bindings>
+ </jb:bean>
- <jb:bindings beanId="03_address" class="org.jboss.soa.esb.example.highprice.Address" createOnElement="order-item">
+ <jb:bean beanId="03_address" class="org.jboss.soa.esb.example.highprice.Address" createOnElement="order-item">
<jb:expression property="email">accounts[0].EMAIL</jb:expression>
<jb:expression property="address1">accounts[0].ADDR1</jb:expression>
<jb:expression property="address2">accounts[0].ADDR2</jb:expression>
<jb:expression property="city">accounts[0].CITY</jb:expression>
<jb:expression property="state">accounts[0].STATE</jb:expression>
- </jb:bindings>
+ </jb:bean>
- <jb:bindings beanId="03_product" class="org.jboss.soa.esb.example.highprice.Product" createOnElement="order-item">
+ <jb:bean beanId="03_product" class="org.jboss.soa.esb.example.highprice.Product" createOnElement="order-item">
<jb:expression property="id">product.PRODUCTID</jb:expression>
<jb:expression property="title">product.NAME</jb:expression>
<jb:expression property="category">product.CATEGORY</jb:expression>
- <jb:expression property="price">product.LISTPRICE</jb:expression>
- </jb:bindings>
+ <jb:expression property="price">(float)product.LISTPRICE</jb:expression>
+ </jb:bean>
+ <!--
+ At the end of every order-item, route the order item Java Objects ("03_order") to the
+ "03_High_Price" Service, if the price per item is 190 or more...
+ -->
+ <esbr:routeBean beanIdRef="03_order" toServiceCategory="HugeQS" toServiceName="03_High_Price" routeOnElement="order-item">
+ <condition><!-- product.LISTPRICE > 190.00 --></condition>
+ </esbr:routeBean>
+
</smooks-resource-list>
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-04_Reptiles_notify_webservice_proxy.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-04_Reptiles_notify_webservice_proxy.xml 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/01_split_enrich_transform_route/smooks_configs/routing/route-to-04_Reptiles_notify_webservice_proxy.xml 2009-07-09 14:21:43 UTC (rev 27788)
@@ -4,14 +4,6 @@
xmlns:esbr="http://www.jboss.org/xsd/jbossesb/smooks/routing-1.0.xsd">
<!--
- At the end of every order-item, route the "Reptiles Notification" SOAP message ("04_SOAP_OrderItem") to the
- "04_Reptiles_notify_webservice_proxy" Service, if the order item product.CATEGORY is "REPTILES"...
- -->
- <esbr:routeBean beanIdRef="04_SOAP_OrderItem" toServiceCategory="HugeQS" toServiceName="04_Reptiles_notify_webservice_proxy" routeOnElement="order-item">
- <condition><!-- product.CATEGORY == "REPTILES" --></condition>
- </esbr:routeBean>
-
- <!--
At the end of every order-item, generate an <ord> split message for the "02_XML" Service
and bind it back into the bean context under a bean ID of "02_XML_OrderItem"...
-->
@@ -37,4 +29,12 @@
</ftl:use>
</ftl:freemarker>
+ <!--
+ At the end of every order-item, route the "Reptiles Notification" SOAP message ("04_SOAP_OrderItem") to the
+ "04_Reptiles_notify_webservice_proxy" Service, if the order item product.CATEGORY is "REPTILES"...
+ -->
+ <esbr:routeBean beanIdRef="04_SOAP_OrderItem" toServiceCategory="HugeQS" toServiceName="04_Reptiles_notify_webservice_proxy" routeOnElement="order-item">
+ <condition><!-- product.CATEGORY == "REPTILES" --></condition>
+ </esbr:routeBean>
+
</smooks-resource-list>
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.lck
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.lck 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.lck 2009-07-09 14:21:43 UTC (rev 27788)
@@ -1 +1 @@
-HSQLLOCK
\ No newline at end of file
+HSQLLOCK
\ No newline at end of file
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.log
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.log 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.log 2009-07-09 14:21:43 UTC (rev 27788)
@@ -1,8 +0,0 @@
-/*C2*/SET SCHEMA PUBLIC
-CONNECT USER SA
-SET AUTOCOMMIT FALSE
-DISCONNECT
-/*C3*/SET SCHEMA PUBLIC
-CONNECT USER SA
-SET AUTOCOMMIT FALSE
-DISCONNECT
Modified: labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.properties
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.properties 2009-07-09 14:08:56 UTC (rev 27787)
+++ labs/jbossesb/trunk/product/samples/quickstarts/huge-split-enrich-transform-route/05_Database/db.properties 2009-07-09 14:21:43 UTC (rev 27788)
@@ -1,5 +1,5 @@
#HSQL Database Engine 1.8.0.8
-#Thu Jan 29 18:56:42 GMT 2009
+#Thu Jul 09 12:07:45 BST 2009
hsqldb.script_format=0
runtime.gc_interval=0
sql.enforce_strict_size=false
More information about the jboss-svn-commits
mailing list