This week's book giveaway is in the Testing forum. We're giving away four copies of The Way of the Web Tester: A Beginner's Guide to Automating Tests and have Jonathan Rasmusson on-line! See this thread for details.
how to set timeout in a web service client with JAX-WS 2.0?
posted 6 years ago
Seems JAX-WS 2.0 have no standard way to set timeout in a client call. The client is implemented with Session Bean. When I google on this, only Sun's Referenced Implementation has a specific BindingProvider property setting about the connection and request timeout. If I have my own thread to monitor this timeout event, it is not suggested in EJB container to have your own thread. What should I do regarding this because I must have a solution instead of just waitting the response or get any exception there. The EJB Timer is not accurate on millinon seconds and is suggested use on long running processes other than such instant calls.