views:

23

answers:

2

Hello. I'm developing application in Java which connects to different web-servers via HTTP protocol (sends them request and waits for response). I would like to use pattern with queue and worker pool, so I'd like to know if there any frameworks in Java providing methods for this?

+1  A: 

I think what you're asking for is a threadpool. It has a queue of tasks and a number of threads working on those tasks. A little bit of googling for "java threadpool" landed me there, might be relevant. http://download.oracle.com/javase/7/docs/api/java/util/concurrent/Executors.html#newFixedThreadPool(int)

Threading can be messy if you aren't careful when designing, good luck :)

dutt
A: 

Try java queue service like onlinemq.com or SQS

Hans Eraas