my new application using Spring MVC , i am hitting an bank API , request from app server first goes to webserver (security reason) and then it hits to bank API , but after some succesfull request say 40-50 , i am receiving java.SocketTimeoutException: connect timed out error in my logs for each request and API stops working. the app server i am using is JBOSS .
i also want to say that when i am using the struts (old aplication) all things works fine. also all DB work fine in Spring only that API and other API of bank stops workimg givimg error of java.SocketTimeoutException , how to diagnose the issue.
we have properly logged, increased the timeout but still no solution .