Reputation: 275
I'm new to java web services and I'm facing some problems to configure my Java server side application with web services. I'll try to explain it with detail:
I have two questions: was I right when I said all those parts have a timeout that should be checked and configured? If affirmative, I would like to know where can I modify the timeout value in my web service implementation (I've taken a look to web.xml and sun-jaxws.xml files, but don't know what and where to touch...).
Thank you very much !!
Upvotes: 0
Views: 5746
Reputation: 762
In Tomcat's server.xml you find a "connectionTimeout" attribute in the "Connector" element, which defines tomcat's timeout range in miliseconds.
But there are cleaner ways of handling resource-consuming tasks for a web service than to just increase timeouts. Think about doing your exhausting stuff in a seperate thread and provide your client a possibility to check whether the thread has finished or not.
Upvotes: 1