tags:

views:

30

answers:

0

We are using URLConnection in java for for sending and receiving responses to a webservice. For a particular use case we need to be able to send concurrent non-blocking requests to the same web-service. I like the curl multi-get way of doing this, since it uses the OS (standard POSIX features) to do this.

The ideas was to start with something like this.

http://curl.haxx.se/libcurl/c/multi-post.html

Is there a way to do this in Java? I know that we can use a ThreadPoolExecutor/Threads etc.. but I prefer a curl multi-get like solution.