IBM Support

JR50713: The REST requests from store jsp expect the response in 30 secon ds. It may be too short for some scenarios.

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as new function.

Error description

  • The REST requests from store jsp expect the response in 30
    seconds. If the remoste system cannot repsond in this time, the
    store jsp will no longer wait for the response and generates an
    error. It is not desirable.
    

Local fix

Problem summary

  • USERS AFFECTED:
    It affects the store jsps that send remote REST
    requests and expect responses.
    
    PROBLEM ABSTRACT:
    The REST
    requests from store jsp expect the response in 30 seconds. It
    may be too short for some scenarios.
    
    BUSINESS IMPACT:
    Store
    pages that leverage remote REST requests may show error under
    some scenarios.
    

Problem conclusion

  • This fix provides an option of configuring the timeout of REST
    requests made via the RESTTag tag. In order adjust the timeout,
    an new customized wc-component.xml can be created according to
    the steps listed here:
    http://www-01.ibm.com/support/knowledgece
    nter/#!/SSZLC2_7.0.0/com.ibm.commerce.developer.doc/tasks/tsdwcc
    omponent.htm
    
    The section of "_config:extendedconfiguration" can
    have the following lines:
    <_config:extendedconfiguration>
    <_config:configgrouping name="REST">
    <!-- Determines if cookies can be used for authentication while
    performing REST calls. -->
    <_config:property name="AuthenticationAllowedUsingCookies"
    value="true"/>
                            <!-- Determines if the
    REST API Discovery should be enabled. -->
    <_config:property name="ApiDiscoveryEnabled" value="true"/>
    <!-- comma separated list of URLs to query to gather the
    aggregate list of available APIs. -->
    <_config:property name="ApiProviderList" value="http://localhost
    /wcs/resources/api,http://localhost/search/resources/api"/>
    <!--
    RemoteRestRequestConnectTimeout = [number in milliseconds]
    Maximum wait time before connecting to the remote server for
    REST service calls in milliseconds.
    Defaults to 30 seconds.
                                     It is
    used only when remote REST service calls are made from the WC
    server.
                             -->
    <_config:property name="RemoteRestRequestConnectTimeout"
    value="30000"/>
    
                            <!--
    RemoteRestRequestReadTimeout = [number in milliseconds]
    Maximum socket time for completing REST service requests in
    milliseconds.
                                     Defaults to 30
    seconds.
                                     It is used only when
    remote REST service calls are made from the WC server.
    -->
    <_config:property name="RemoteRestRequestReadTimeout"
    value="30000"/>
                    </_config:configgrouping>
    </_config:extendedconfiguration>
    
    The
    RemoteRestRequestConnectTimeout and RemoteRestRequestReadTimeout
    can be customized accordingly.
    -------------------------------------------------------------
    The latest available maintenance information can be obtained
    from the Recommended Fixes for WebSphere Commerce technote:
    http://www.ibm.com/support/docview.wss?rs=3046&uid=swg21261296
    

Temporary fix

Comments

APAR Information

  • APAR number

    JR50713

  • Reported component name

    WC EXP DEV ED W

  • Reported component ID

    5724I3700

  • Reported release

    700

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2014-07-07

  • Closed date

    2014-11-25

  • Last modified date

    2014-12-04

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    WC EXP DEV ED W

  • Fixed component ID

    5724I3700

Applicable component levels

  • R700 PSY

       UP

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSCRUD","label":"WebSphere Commerce Developer Business"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"700"}]

Document Information

Modified date:
12 December 2021