Monday, November 23, 2015

Disable default Keep Alive session in WSO2 ESB

In WSO2 ESB, it maintains a default keep alive session with backend service and the same session is used to send request and getting response again and again. But you can disable keep alive session globally and on the service level by using below property.

To disable http keep session on service level, you can use below property just after the IN sequence of the service.

<property name="NO_KEEPALIVE" value ="true" scope="axis2"/>

If you want to disable HTTP keepalive session globally you can go to “wso2esb-4.0.3\lib\core\WEB-INF\classes” (WSO2 ESB 4.0.3) and update below property in passthru-http.properties file.


http.connection.disable.keepalive=1

No comments:

Post a Comment