我的問題是我調用遠程Web服務需要超過60秒的響應,這會導致超時異常。我不想要任何超時檢查:我只希望發件人等到Web服務結束。我試圖設置:java WebService請求超時
HttpSession httpSession = getThreadLocalRequest().getSession();
httpSession.setMaxInactiveInterval(120000);
getThreadLocalRequest().setAttribute("session", httpSession);
修改web.xml中會話超時(儘管我不認爲這是我的問題有關)來創建自定義的HttpRequest。超時仍然存在。有什麼辦法可以關閉這個檢查嗎?
及其基於容器http://stackoverflow.com/questions/141734/what-is-the-default-session-timeout-for-a-java-ee-網站 –
已經嘗試過,已經失敗。更明確地說:我將web.xml和webservice web.xml的session-timeout設置爲60分鐘 – GoGoLander