wso2 esb how to increase endpoint timeout

我们两清 提交于 2019-12-06 11:55:26

Assuming this is a "Scheduled Message Forwarding Processor", to increase the send timeout up to 30 minutes :

  1. In your endpoint, verify that "connection timeout" is "never timeout" (edit the endpoint in the console and "Show Advanced options")
  2. Edit repository/conf/synapse.properties and modify synapse.global_timeout_interval (in ms) : this is the maximum time a callback instance will exist in wso2 to receive the response
  3. copy the sample axis2 conf file from samples/axis2Client/client_repo/conf/axis2.xml to, for example, repository/conf/axis2/axis2_mp.xml
  4. Edit this axis2_mp.xml config, find transportSender name="http" and add a parameter "SO_TIMEOUT" (in ms) : <parameter name="SO_TIMEOUT" locked="false">108000000</parameter>
  5. Edit your Message Processor and in Show Additional Parameters, specify the entry "Axis2 Configuration" to repository/conf/axis2/axis2_mp.xml

SO_TIMEOUT is the time to wait for the response. You can specify CONNECTION_TIMEOUT for the max time to establish the connection.

Pay attention : all callbacks will persist up to 30 minutes in the ESB !

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!