[jboss-svn-commits] JBL Code SVN: r19559 - labs/jbossesb/trunk/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Apr 15 05:55:12 EDT 2008
Author: kevin.conner at jboss.com
Date: 2008-04-15 05:55:11 -0400 (Tue, 15 Apr 2008)
New Revision: 19559
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java
Log:
Enable subsequent runs of the QS: JBESB-1670
Modified: labs/jbossesb/trunk/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java 2008-04-15 09:50:59 UTC (rev 19558)
+++ labs/jbossesb/trunk/product/samples/quickstarts/helloworld_tx_sql_action/src/org/jboss/soa/esb/samples/quickstart/helloworldtxsqlaction/MyAction.java 2008-04-15 09:55:11 UTC (rev 19559)
@@ -24,13 +24,11 @@
import org.jboss.soa.esb.actions.AbstractActionLifecycle;
import org.jboss.soa.esb.helpers.ConfigTree;
-import org.jboss.soa.esb.listeners.ListenerTagNames;
import org.jboss.soa.esb.message.Message;
-import org.jboss.soa.esb.message.body.content.BytesBody;
public class MyAction extends AbstractActionLifecycle
{
- private static int checkIter = 0;
+ private boolean fail ;
protected ConfigTree _config;
@@ -48,13 +46,12 @@
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)
- problem = true;
- }
+ fail = !fail ;
+ problem = fail ;
+ }
}
System.out.println(results.toString());
logFooter();
More information about the jboss-svn-commits
mailing list