[jboss-svn-commits] JBL Code SVN: r19558 - labs/jbossesb/branches/JBESB_4_2_1_GA_CP/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:50:59 EDT 2008
Author: kevin.conner at jboss.com
Date: 2008-04-15 05:50:59 -0400 (Tue, 15 Apr 2008)
New Revision: 19558
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
Log:
Enable subsequent runs of the QS: JBESB-1670
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-04-15 09:50:07 UTC (rev 19557)
+++ 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-04-15 09:50:59 UTC (rev 19558)
@@ -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;
@@ -51,11 +49,8 @@
if ("data 22".equals(curr.getValue()))
{
System.out.println("DATA READ: "+curr.getValue());
-
- if (checkIter++ < 2) {
- problem = true;
- break;
- }
+ fail = !fail ;
+ problem = fail ;
}
}
System.out.println(results.toString());
More information about the jboss-svn-commits
mailing list