Axis adapter’s connection timeout value setting
[6to4 adapter] [adapter] [Axis] [connection] [connection timeout] [timeout]
Related:
- XI Adapter Framework DynamicConfiguration ModuleSymptom Information for the XI AF DynamicConfiguraiton Module Other terms...
- JMS Adapter: On Demand Connection (New Feature)Symptom A new feature has been introduced in the JMS...
- Configuring timeout for dummy SQL query in advanced modeSymptom You are using JDBC adapter in your scenarios with...
- FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2 RFC AdapterSymptom FAQ XI 3.0 RFC Adapter, PI 7.0 RFC Adapter,...
- Socket and connection issues in java web servicesSymptom 1. java.net.SocketException : Connection timed out 2. java.net. SocketException:...
Symptom
The timeout value used by the standard trasnport handler such as HTTPSender or CommonsHTTPSender is obtained by the timeout
value set in the Axis MessageContext object. The MessageContext object has method getTimeout() and setTimeout(int timeout) to get and set the timeout value.
However, this value was previously not accessible directly in the adapter’s channel/handler configuration and it was set to its default value defined in org.apache.axis.Constants, which is 60000 msec.
This meant that the user needed to write their own handler to modify the connection timeout value.
Other terms
Timeout, Connection, Axis
Reason and Prerequisites
Limitation
This patch offers several approaches to set the timeout value using the standard channel configuration.
Appraoch 1: Without using any handler to set a fixed timeout value per channel
Set module paramter “timeout” for the AFAdapterBean module at the request message processing part.
Approach 2: Using MessageContextPropertiesHanlder to set a fixed timeout value per channel
Use com.sap.aii.axis.soap.MessageContextPropertiesHandler (see its relevant FAQ entry for this handler).
To set the timeout value to 120000, configure this handler to use the following parameters.
parameter value
key.n set timeout
value.n 120000
type.n java.lang.Integer
Approach 3: Using XI30DynamicConfigurationHandler to use a variable timeout value per call
Use com.sap.aii.axis.xi.XI30DynamicConfigurationHandler (see its relevant FAQ entry for this handler).
To set the timeout value based on some DynamicConfiguration header field (e.g., http://sap.com/xi/System/general#syncTimeout),
configure this handler to use the following parameters
parameter value
key.n write http://sap.com/xi/System/general syncTimeout
value.n timeout
type.n java.lang.Integer
Solution
Please deploy the patch according to your code line.
XI 7.0
XI ADAPTER FRAMEWORK CORE 7.0
Support Package 15, Patch Level 17 (SAPXIAFC15_17.SCA)
Support Package 16, Patch Level 12 (SAPXIAFC16_12.SCA)
Support Package 17, Patch Level 6 (SAPXIAFC17_6.SCA)
Support Package 18, Patch Level 5 (SAPXIAFC18_5.SCA)
Support Package 19, Patch Level 0 (SAPXIAFC19_0.SCA)
XI ADAPTER FRAMEWORK 7.0
Support Package 15, Patch Level 11 (SAPXIAF15_11.SCA)
Support Package 16, Patch Level 6 (SAPXIAF16_6.SCA)
Support Package 17, Patch Level 3 (SAPXIAF17_3.SCA)
Support Package 18, Patch Level 4 (SAPXIAF18_4.SCA)
Support Package 19, Patch Level 0 (SAPXIAF19_0.SCA)
—————————————————–
XI 7.01
XI ADAPTER FRAMEWORK CORE 7.01
Support Package 3, Patch Level4 (SAPXIAFC03_4.SCA)
Support Package 4, Patch Level 0 (SAPXIAFC04_0.SCA)
XI ADAPTER FRAMEWORK 7.01
Support Package 3, Patch Level 1 (SAPXIAF03_1.SCA)
Support Package 4, Patch Level 0 (SAPXIAF04_0.SCA)
—————————————————–
XI 7.02
XI ADAPTER FRAMEWORK CORE 7.02
Support Package 0, Patch Level 0 (SAPXIAFC00_0.SCA)
XI ADAPTER FRAMEWORK 7.02
Support Package 0, Patch Level 0 (SAPXIAF00_0.SCA)
—————————————————–
XI 7.10
XI ADAPTER FRAMEWORK 7.10
Support Package 6, Patch Level 23 (SAPXIAF06_23.SCA)
Support Package 7, Patch Level 11 (SAPXIAF07_11.SCA)
Support Package 8, Patch Level 0 (SAPXIAF08_0.SCA)
—————————————————–
XI 7.11
XI ADAPTER FRAMEWORK 7.11
Support Package 3, Patch Level 0 (SAPXIAF03_0.SCA)
—————————————————–
XI 7.20
XI ADAPTER FRAMEWORK 7.20
Support Package 0, Patch Level 0 (SAPXIAF00_0.SCA)
—————————————————–