How to define a max execution time for a webmethod
I built a web service, deployed on Glassfish. This web service uses a library (Apache Tika) that extracts documents content to deliver a document preview.
Everything has been running fine for 4 months, but today, Glassfish crashed 3 times; it couldn't handle client requests until I restarted it.
Actually, a specific file ran Tika into an infinite loop in the web method, and it blocked completely the Glassfish process... and all the users :(
Well, does anybody knows if I can set a parameter in Glassfish to define a maximum execution time for web methods?
This parameter exists in PHP : http://www.php.net/manual/en/info.configuration.php#ini.max-execution-time
Thanks for your help,