Lucas Pires
Lucas Pires

Reputation: 1339

WSO2 Fault sequence does not return using local transport

I'm using WSO2 ESB 4.6.0 and my configurations in axis2.xml are default:

<transportReceiver name="local" class="org.wso2.carbon.core.transports.local.CarbonLocalTransportReceiver"/>
<transportSender name="local" class="org.wso2.carbon.core.transports.local.CarbonLocalTransportSender"/>

Calling a proxy in the same JVM, when a fault occurs, the faultSequence can not return a response by the send mediator, and I receive a timeout.

The configuration below not solve my problem:

<faultSequence>
  ...
  <header name="To" action="remove"/>
  <property name="RESPONSE" value="true" scope="default" type="STRING"/>
  <send/>
</faultSequence>

Otherwise, changing the 'local transport' by 'http transport', everything works well.

Any suggestion?

Upvotes: 2

Views: 306

Answers (2)

Lucas Pires
Lucas Pires

Reputation: 1339

I did an upgrade to the ESB 4.9.0 version and I solved my problem. I saw some posts on internet like this and I think that is a bug in the old WSO2 version.

Upvotes: 0

maheeka
maheeka

Reputation: 2093

Try using the <respond/> mediator instead of the above to send the response back to client.

Upvotes: 2

Related Questions