Hello all:
I need to develop an application in
java that will be responsible for receiving simultaneously numerous jabber messages from different sources. Based on the contents and the types of the jabber messages, different methods might need to be executed.
What I would like to see happen is to have a
thread pool containing a predefined number of threads and when a jabber messages arrives, upon examining the contents and the type of the message, a thread from the thread pool should be assigned the task of executing the appropriate method for that message and after completing that task, the thread should be added back to the thread pool so that it can process future messages.
Can anyone please provide me with some ideas/thoughts/comments on this matter?
Also, I have briefly looked the util.concurrent package by Doug Lea. Does anyone have any knowledge of how I can apply that package to my needs?