Setting Activity Reconnection

You can set the retry times and retry interval for activities, so that when an activity fails to connect to the server, the plug-in reconnects to the server according to the reconnection settings.

The values specified for the arguments are in millisecond, you can replace the values with your own data.

Procedure

  1. Start TIBCO Business Studio.
  2. Click Run > Run Configurations.
  3. In the Run Configurations dialog, click the Arguments tab in the left panel, and input the following arguments and their values in the VM arguments panel:

    -Dcom.tibco.bw.palette.netsuite.waitTime=200000

    -Dcom.tibco.bw.palette.netsuite.webservice.retries=5

    -Dcom.tibco.bw.palette.netsuite.webservice.retryInterval=30000

    Note: You do not have to set retryRegex here in the Run Configurations dialog because the TIBCO BusinessWorks Studio does not support it.
  4. Click Apply.
  5. In TIBCO Enterprise Administrator at run time, navigate to the TIBCO_HOME/bw/version_number/bin directory and open the bwcommon.tra file.
  6. Add the following arguments and their responding values:

    java.property.com.tibco.bw.palette.netsuite.waitTime=200000

    java.property.com.tibco.bw.palette.netsuite.webservice.retries=5

    java.property.com.tibco.bw.palette.netsuite.webservice.retryInterval=30000

    java.property.com.tibco.bw.palette.netsuite.webservice.retryRegex=Only one request may be made against a session at a time|Session invalidation is in progress with different thread

    Note: You can find the retryRegex value from the log file that is created by the NetSuite server response, or you can find it from the NetSuite exception output.