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 serviceusingServiceInvokerwith 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.xmlis 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 of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
