i have tomcat server that holds web application i like to be able to call http requests from within this web application to other http server . what is the right way doing it ?
another impotent thing is that the web application needs to call multiple http request.
so i guess i need to use thread pool .
can tomcat give me thread pool or i need to build one .
i have tomcat server that holds web application i like to be able to
Share
Use the commons-httpclient. For thread pool use the ExecutorService support provided in java 5.0.
It is same as how you would make http calls in any regular java app – running it in tomcat doesn’t make it easier or difficult.