Hi Tristan,
Thanks a lot for your help. I was using the same RestTemplate Object for two POST calls. Now with two diferent RestTemplate objects it worked. Thanks for you suggestions too. I am also using the timeout properites you have given in my application.properties files too.
Thank You.