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

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Thu Oct 4 11:30:15 EDT 2007


Author: tcunning
Date: 2007-10-04 11:30:14 -0400 (Thu, 04 Oct 2007)
New Revision: 15580

Modified:
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/populate.sql
   labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt
Log:
bug:JBESB-1071
Add orderBy and whereCondition.


Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml	2007-10-04 12:56:41 UTC (rev 15579)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/jboss-esb.xml	2007-10-04 15:30:14 UTC (rev 15580)
@@ -11,6 +11,9 @@
           		<sql-message-filter
           			tablename="GATEWAY_TABLE"
           			status-column="STATUS_COL"
+				order-by="DATA_COLUMN"	
+				where-condition="DATA_COLUMN like 'data%'"
+
           			message-id-column="UNIQUE_ID"
           		/>
           	</sql-bus>

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/populate.sql
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/populate.sql	2007-10-04 12:56:41 UTC (rev 15579)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/populate.sql	2007-10-04 15:30:14 UTC (rev 15580)
@@ -2,4 +2,5 @@
 insert into gateway_table(data_column, status_col) values('data 22','P');
 insert into gateway_table(data_column, status_col) values('data 333333333333111111','P');
 insert into gateway_table(data_column, status_col) values('data d d d d','P');
+insert into gateway_table(data_column, status_col) values('do not consume', 'P');
 insert into gateway_table(data_column, status_col) values('data last record','P');

Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt	2007-10-04 12:56:41 UTC (rev 15579)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_sql_action/readme.txt	2007-10-04 15:30:14 UTC (rev 15580)
@@ -10,7 +10,10 @@
   NOTE:
   1. This quickstart uses hsqldb so that it can be deployed without any 
 	setup required.   
-  2. "ant select" will show you the contents of the database table
+  2. "ant select" will show you the contents of the database table.   The
+	<sql-message-filter> defined has a where-condition, so one of the rows
+	that the table is populated with will never be processed.    There
+	should be one remaining row for each time the table is populated.
 
 To Run standalone mode:
 =======================




More information about the jboss-svn-commits mailing list