[jboss-svn-commits] JBL Code SVN: r14161 - labs/jbossesb/trunk/product/samples/quickstarts/custom_action.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat Aug 11 14:49:34 EDT 2007
Author: burrsutter
Date: 2007-08-11 14:49:34 -0400 (Sat, 11 Aug 2007)
New Revision: 14161
Modified:
labs/jbossesb/trunk/product/samples/quickstarts/custom_action/jboss-esb.xml
labs/jbossesb/trunk/product/samples/quickstarts/custom_action/readme.txt
Log:
Needed minor updates
Modified: labs/jbossesb/trunk/product/samples/quickstarts/custom_action/jboss-esb.xml
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/custom_action/jboss-esb.xml 2007-08-11 18:37:17 UTC (rev 14160)
+++ labs/jbossesb/trunk/product/samples/quickstarts/custom_action/jboss-esb.xml 2007-08-11 18:49:34 UTC (rev 14161)
@@ -60,6 +60,7 @@
<subElement2>Value of 2</subElement2>
<subElement3>Value of 3</subElement3>
</property>
+ <property name="exceptionMethod" value="exceptionHandler" />
</action>
<action name="sixth" class="org.jboss.soa.esb.samples.quickstart.customaction.MyBasicAction" process="displayMessage" >
<property name="exceptionMethod" value="exceptionHandler" />
@@ -67,9 +68,8 @@
<action name="seventh" class="org.jboss.soa.esb.samples.quickstart.customaction.CustomBeanConfigAction">
<property name="information" value="Hola Mundo" />
- <property name="repeatCount" value="5"/>
+ <property name="repeatCount" value="5"/>
</action>
-
</actions>
</service>
</services>
Modified: labs/jbossesb/trunk/product/samples/quickstarts/custom_action/readme.txt
===================================================================
--- labs/jbossesb/trunk/product/samples/quickstarts/custom_action/readme.txt 2007-08-11 18:37:17 UTC (rev 14160)
+++ labs/jbossesb/trunk/product/samples/quickstarts/custom_action/readme.txt 2007-08-11 18:49:34 UTC (rev 14161)
@@ -30,14 +30,14 @@
Things to Consider:
===================
jbossesb.xml:
- <action class="org.jboss.soa.esb.samples.quickstart.moreaction.MyBasicAction"
+ <action class="org.jboss.soa.esb.samples.quickstart.customaction.MyBasicAction"
process="displayMessage" exceptionMethod="exceptionHandler" />
- <action class="org.jboss.soa.esb.samples.quickstart.moreaction.MyBasicAction"
+ <action class="org.jboss.soa.esb.samples.quickstart.customaction.MyBasicAction"
exceptionMethod="exceptionHandler" />
- <action class="org.jboss.soa.esb.samples.quickstart.moreaction.StatefulAction"
+ <action class="org.jboss.soa.esb.samples.quickstart.customaction.StatefulAction"
process="methodOne,methodTwo,displayCount"
exceptionMethod="exceptionHandler" />
- <action class="org.jboss.soa.esb.samples.quickstart.moreaction.CustomConfigAction"
+ <action class="org.jboss.soa.esb.samples.quickstart.customaction.CustomConfigAction"
process="displayConfig" myStuff="rocks" moreStuff="rocks harder">
<subElement1>Value of 1</subElement1>
<subElement2>Value of 2</subElement2>
@@ -65,4 +65,23 @@
If you wish to see a "native" call where there is no gateway - "ant sendesb".
Review the SendEsbMessage.java class in the "test" package.
+ <action name="seventh" class="org.jboss.soa.esb.samples.quickstart.customaction.CustomBeanConfigAction">
+ <property name="information" value="Hola Mundo" />
+ <property name="repeatCount" value="5"/>
+ </action>
+
+ This demonstrates the use of the BeanConfiguredAction which takes properties defined in the jboss-esb.xml
+ and calls the appropriate "setter" method.
+ Add this line to the action chain in the jboss-esb.xml
+ <action name="causesException" class="org.jboss.soa.esb.samples.quickstart.customaction.MyBasicAction"
+ process="causesException"/>
+
+ It will allow you to see how exceptions are propagated. For more indepth examples on exception handling
+ please review the exceptions_faults quickstart.
+
+
+
+
+
+
More information about the jboss-svn-commits
mailing list