Show Table of Contents
14.2. Configuring an Action by Setting Properties for It
Actions generally act as templates, requiring external configuration in order to perform their tasks. For example, a
PrintMessage action might use a property named message to indicate what to print and another property called repeatCount to indicate the number of times to print it. If so, the action configuration in the jboss-esb.xml file should look like this:
<action name="PrintAMessage" class="test.PrintMessage"> <property name="information" value="Hello World!" /> <property name="repeatCount" value="5" /> </action>
How this configuration is then mapped on to the action instance will depend on the type of action.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.