Red Hat Training

A Red Hat training course is available for JBoss Enterprise SOA Platform

13.7.14. SyncServiceInvoker

Class org.jboss.soa.esb.actions.SyncServiceInvoker
Synchronous message routing action. This action makes a synchronous invocation on the configured service and passes the invocation response back into the action pipeline for processing by subsequent actions (if there are any), or as the response to if the service is a RequestResponse service.

Table 13.26. SyncServiceInvoker Properties

Property Description Required
service-category
Service Category.
Yes
service-name
Service Name.
Yes
failOnException
Should the action fail on an exception from the target service invocation. If set to "false", the action will simply return the input message to the pipeline, allowing the service to continue processing. If you need to know the failure state, leave this parameter set to true and use the normal "faultTo" mechanism by allowing the pipeline to fail (default is "true").
No
suspendTransaction
This action will fail if executed in the presence of an active transaction. The transaction can be suspended if this property is set to "true". Default is "false".
No
ServiceInvokerTimeout
Invoker timeout in milliseconds. In the event of a timeout, an exception will occur, causing the action to behave according to the "failOnException" configuration. The default is 30000.
No
<action name="route” class="org.jboss.soa.esb.actions.SyncServiceInvoker">
    <property name="service-category" value="Services" />
    <property name="service-name" value="OM" />
</action>