Synchronous call to an ESB service using ServiceInvoker fails after retries in JBoss ESB
Issue
- How to get a synchronous response to the call of a Web Service through JBoss ESB?
- When invoking the
ESB service
usingServiceInvoker
with synchronous call (deliverSync(...)
) the ESB repeated three times and the call fails. - The error console shows after three attempts is:
Exception in thread "main"
org.jboss.soa.esb.listeners.message.ResponseTimeoutException: No response received for service [MyServiceCategory: WebserviceConsumer1].
at org.jboss.soa.esb.client.ServiceInvoker.post (ServiceInvoker.java: 462)
at org.jboss.soa.esb.client.ServiceInvoker.deliverSync (ServiceInvoker.java: 221)
...
- The ESB service in
jboss-esb.xml
is as follows:
<service category="MyServiceCategory" name="WebserviceConsumer1"
description="Helloworld Webservice Consumer" invmScope="GLOBAL" invmTransacted="true">
<listeners> ... </listeners>
<actions mep="OneWay">
...
<action name="soapui-client-action" class="org.jboss.soa.esb.actions.soap.SOAPClient">
<property name="wsdl" value="http://localhost:8080/xxxxx/DownloadFileWS?wsdl" />
<property name="responseAsOgnlMap" value="true" />
<property name="SOAPAction" value="getFileHash" />
</action>
...
</actions>
</service>
Environment
- Red Hat JBoss SOA Platform (SOA-P)
- 5.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.