Thursday, October 25, 2012

How to increase the external invocation timeout for a BPEL process in BPS

There are situations where we need to invoke a service which will take quite sometime to respond within a bpel invoke. In such a scenario, you can use following settings to increase the default timeout values.

Increase the default values for MessageExchange timeout and External service invocation timeout. Also set the SO_TIMEOUT parameter and CONNECTION_TIMEOUT parameter in HttpSender.

Here, we are increasing the timeout value from default value to 10 minutes.

bps.xml
 

<tns:MexTimeOut value="600000"/>
<tns:ExternalServiceTimeOut value="600000"/>


axis2.xml

<transportSender name="http"
                     class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
        <parameter name="PROTOCOL">HTTP/1.1</parameter>
        <parameter name="Transfer-Encoding">chunked</parameter>
        <!-- This parameter has been added to overcome problems encounted in SOAP action parameter -->
        <parameter name="OmitSOAP12Action">true</parameter>
        <parameter name="SO_TIMEOUT">600000</parameter>
        <parameter name="CONNECTION_TIMEOUT">600000</parameter>
    </transportSender>
    

1 comment:

  1. Hi Nandikajayawardana,
    I have one Query in wso2 Data Service Server:-


    Multiple tables depend on each other with Primary key and foregin key, i used the auto generated key in wso2DSS.

    i am inserted data in 1st table and getting auto genreted identity column, using that identity column again i am inserting in 2nd table as well in 3rd also

    @my issue is while inserting in 2nd table error occure due to pk voilation i need to rollback the 1st table row which is already inserted in table how could i do this ...

    ReplyDelete