Customize Synchronous Timeout

Problem Statement
While coding, we do come across a challenging situation where one service demands a different timeout value as compared to the global timeout value. Consider a scenario where 1 out of 20 services needs a different value as compared to the global synchronous max wait time value.

One cannot amend the global synchronous timeout value as it impacts the rest of the services.


Solution
SOA services have provided us with httpReadTimeout and local optimization properties, which gives the developers the liberty to customize the synchronous timeout value.

The above properties needs to mention within the composite.xml under the reference name, which has a strict clock to follow.


Usage in composite.xml:
<property name=”oracle.webservices.httpReadTimeout” type=”xs:string” many=”false” override=”may”>70000</property>

<property name=”oracle.webservices.local.optimization” type=”xs:boolean” many=”false” override=”may”>false</property>


NOTE:

  1. Please use both the above properties to customize the synchronous timeout value
  2. Unit for value 70000 is milliseconds, so please be mindful to convert your synchronous timeout value into milliseconds

Join the Conversation

  1. Unknown's avatar
  2. skerry04's avatar
  3. Ritu Panjwani's avatar
  4. rajup123's avatar
  5. Unknown's avatar
  6. Unknown's avatar

58 Comments

  1. It has helped me a lot with all solutions easily accessible and also it is very user friendly. Great work. Looking forward for some more of it.

    Like

  2. This information has been a huge help, thanks for making it easy to understand! You have managed to explain this better than some of my mentors.

    Liked by 1 person

  3. Very useful blog. This idea works very well to change the timeouts of synchronous service. After searching mutiple blogs tried this one in one my projects and it worked exactly as I expected. Great work Dinesh. keep it up.

    Like

Leave a comment

Design a site like this with WordPress.com
Get started