[jboss-svn-commits] JBL Code SVN: r19122 - in labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action: src/hsqldb and 1 other directories.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Wed Mar 19 12:07:13 EDT 2008
Author: tfennelly
Date: 2008-03-19 12:07:13 -0400 (Wed, 19 Mar 2008)
New Revision: 19122
Modified:
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/hsqldb/create.sql
labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java
Log:
http://jira.jboss.com/jira/browse/JBESB-1613
http://jira.jboss.com/jira/browse/JBESB-1614
http://jira.jboss.com/jira/browse/JBESB-1615
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml 2008-03-19 15:21:27 UTC (rev 19121)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/jboss-esb.xml 2008-03-19 16:07:13 UTC (rev 19122)
@@ -13,7 +13,7 @@
status-column="STATUS_COL"
order-by="DATA_COLUMN"
where-condition="DATA_COLUMN like 'data%'"
- message-column="message"
+ message-column="DATA_COLUMN"
message-id-column="UNIQUE_ID"
insert-timestamp-column="TIMESTAMP_COL"
/>
@@ -29,7 +29,7 @@
message-id-column="MESSAGE_ID"
status-column="STATUS_COL"
insert-timestamp-column="TIMESTAMP_COL"
- message-column="DATA_COL"
+ message-column="DATA_COLUMN"
/>
</sql-bus>
</sql-provider>
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/hsqldb/create.sql
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/hsqldb/create.sql 2008-03-19 15:21:27 UTC (rev 19121)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/hsqldb/create.sql 2008-03-19 16:07:13 UTC (rev 19122)
@@ -2,5 +2,14 @@
(
unique_id INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1) NOT NULL PRIMARY KEY,
data_column VARCHAR(255) NOT NULL,
-status_col VARCHAR(255) NOT NULL
+status_col VARCHAR(255) NOT NULL,
+timestamp_col VARCHAR(255)
);
+
+create table TX_ESB_MESSAGES
+(
+message_id VARCHAR(255) NOT NULL,
+data_column VARCHAR(255) NOT NULL,
+status_col VARCHAR(255) NOT NULL,
+timestamp_col VARCHAR(255)
+);
Modified: labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java
===================================================================
--- labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java 2008-03-19 15:21:27 UTC (rev 19121)
+++ labs/jbossesb/branches/JBESB_4_2_1_GA_CP/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java 2008-03-19 16:07:13 UTC (rev 19122)
@@ -48,13 +48,15 @@
for (Map.Entry<String,Object> curr : rowData.entrySet()) {
results.append("column "+curr.getKey()+" = <" + curr.getValue()+">");
- if (curr.getValue().equals("data 22"))
+ if ("data 22".equals(curr.getValue()))
{
System.out.println("DATA READ: "+curr.getValue());
- if (checkIter++ < 2)
+ if (checkIter++ < 2) {
problem = true;
- }
+ break;
+ }
+ }
}
System.out.println(results.toString());
logFooter();
More information about the jboss-svn-commits
mailing list