ıs there a way to to define a timeout based on the url?

By : Ali
Source: Stackoverflow.com
Question!

I am looking for a solution for timeout passing to my application with minimum code injection in it.

So, is there a way to pass timeout parameter to a connection based on url prefix? Spring and weblogic included solutions are needed.

Any ideas?

By : Ali


Answers

So, is there a way to pass timeout parameter to a connection based on url prefix?

Not that I've heard of. Certainly the URL, URI and HTTP specs don't provide a standard way to include timeout as part of a request.

Spring and weblogic included solutions are needed.

See above. I've never heard of any general (or Spring or Weblogic specific) solutions that allow you to do this via the URL.


Any ideas?

It would help if you were more specific about the problem you were trying to solve.

What kind of timeout you are talking about? Client-side timeout on connect? Client-side timeout on receipt of a response? Some kind of server-side timeout?

What is the use-case?

What are the constraints?

By : Stephen C


This video can help you solving your question :)
By: admin